Results for “simulation”

10 results

  1. Challenge

    Seeded simulation

    Simulate 100 sensor readings, each with a 5% chance of a glitch, and seed random with 42 so the count is the same on every run and a test can check it exactly, then pick a kind for each glitch with…

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

    Retry the uplink

    …up to three times, taking each result from a list of simulated radio replies, and stop at the first success with break; then wait 2, 4, 8 seconds between attempts, as real retry code does.

    Write the code Medium 2 stages for loop range break retry
  3. Challenge

    Flag from config text

    …False, yet bool("False") turns it into True and the engine simulates instead of firing. Predict it, find out why, compare the text instead, then read yes/no settings typed by hand.

    Fix the code Easy 3 stages bool if else config
  4. Article Mini projects

    Medical dispenser - Don’t trust the user

    …print("\n=== TESTING DAILY LIMIT ===") print("Simulating reaching daily limit...") # Create new dispenser with 1-second intervals for quick testing quick_dispenser =…

  5. Article Python Fundamentals

    Python print() Function

    …showing telescope coordinates, or debugging your space simulation, mastering the print() function is your first step toward becoming a space programmer. Why is the print() function important in…

  6. Article Mini projects

    Calculate your weight on different planets in Python

    …skills, and soon you'll be ready for more advanced space simulations. The stars are waiting for you! The complete code for our space weight calculator is in the code tab . Now that you know how to…

  7. Article Python Fundamentals

    A Practical Guide to Getting Started with Programming

    …It allows you to create software, solve problems, and even simulate space missions. Plus, it's a highly sought-after skill in industries like space exploration, robotics, and AI. I know nothing about…

  8. Challenge

    Decimal comma

    The burn calculator works perfectly in the simulator. Then an operator at a European ground station types the burn length the way it is written in Poland and much of Europe, 42,5 , and the program…

    Fix the code Easy 3 stages strings replace float ValueError
  9. Article Mini projects

    Calculating Escape Velocity in Python

    …visualizations : plot escape velocities with matplotlib Simulate trajectories : use NumPy arrays for orbital mechanics Summary We went from a simple formula to a full-featured calculator using NumPy…