Results for “difference”

Showing 31–40 of 40

  1. 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)…

  2. Article Python Fundamentals

    Online Python Editor

    …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…

  3. Article Mini projects

    Drawing Planetary Orbits in Python

    …(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 =…

  4. Challenge

    Seeded simulation

    …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…

    Write the code Easy 2 stages random random.seed random.choice simulation
  5. Challenge

    Extra log fields

    …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…

    Write the code Medium 2 stages functions **kwargs keyword arguments dictionaries
  6. Challenge

    Validate a cargo record

    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…

    Write the code Medium 2 stages functions return lists validation
  7. Challenge

    Aligned status board

    …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…

    Write the code Medium 3 stages f-strings alignment tables formatting
  8. Challenge

    Mission Control online

    …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…

    Write the code Easy 2 stages print output strings beginner
  9. Article Mini projects

    Base 6 Number System in Python

    …- 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…

  10. Article Python Fundamentals

    How to Start Programming in Python Fast

    …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…