Article Mini projects
Calculating Escape Velocity in Python
…return np.sqrt(2 * G * mass / radius) # Test for different planets print("ESCAPE VELOCITIES IN THE SOLAR SYSTEM") print("-" * 40) # Earth v = calculate_escape_velocity(5.972e24, 6.371e6)…
Showing 31–40 of 40
Article Mini projects
…return np.sqrt(2 * G * mass / radius) # Test for different planets print("ESCAPE VELOCITIES IN THE SOLAR SYSTEM") print("-" * 40) # Earth v = calculate_escape_velocity(5.972e24, 6.371e6)…
Article Python Fundamentals
…Built for Real Developers on the Move So I built something different. An online Python editor that actually respects your time and intelligence. What makes it different: Mobile-First Design That Makes…
Article Mini projects
…(where our star is) for any angle theta . 5. Simulating Different Orbits Let's create some planets with different eccentricities: # Create and draw orbits # Nearly circular orbit (like Earth) earth =…
Challenge
…that exact count, and any other order of calls gives a different one. Kinds of glitch For each glitch, pick its kind with random.choice(KINDS) , right after the check that found it, count the kinds in…
Challenge
…pressure, on which orbit? Every subsystem wants to attach different details, and nobody wants a format_log() with fifty optional parameters. Let the function take whatever fields the caller has, then…
Challenge
Cargo records arrive from several warehouses, typed by different people. Before an item goes on the manifest, it has to pass a check, and when it fails, the warehouse needs to know everything that is…
Challenge
…and its state, one per line. Because the names are all different lengths, the states end up scattered across the screen, and a HOLD is easy to miss. Line the states up in a column. Format specs can…
Challenge
…Mission control online and Mission Control online are two different lines, and one extra space is enough to raise an alarm. Make the console say exactly what the monitor expects. Status line The…
Article Mini projects
…- we have ten fingers. Evolution just dealt the Eridians a different hand. Literally. It's also worth noting that one fan theory points out an interesting mathematical property: while Eridians could…
Article Python Fundamentals
…the joys of programming. Don't hesitate to experiment with different commands and see what happens! 5. Exploring Python Syntax Python's syntax is what sets it apart. Let's look at some basic elements…