Results for “while true”

Showing 1–10 of 13

  1. Challenge

    Safe number input

    …Not a number: twelve Not a number: 12,5 Burn: 12.5 s Use while True: , with float(text) inside try , break when it works, and except ValueError: for the message. The check doesn't show the question…

    Write the code Easy 2 stages errors try except ValueError
  2. Challenge

    Paged results

    …one list with extend(), then fetch page after page in a while loop and stop at the first short page, the way paginated API responses are read.

    Write the code Medium 2 stages for loop while loop extend break
  3. Article Mini projects

    Calculating Escape Velocity in Python

    …scientific computing. Why NumPy Instead of Regular Python? While Python's built-in math functions work fine for simple calculations, NumPy offers several advantages for scientific computing: More…

  4. Article Python Fundamentals

    Variables and data types in Python

    …numbers, text, and complex data structures effectively while following best practices for clean and maintainable code.

  5. Challenge

    Logging instead of print

    While chasing a fuel sensor bug, someone added a print() for every tank. The bug is fixed, but the prints stayed, and the pre-burn check now buries its one important line, an empty tank, under lines…

    Fix the code Medium 2 stages logging debug info warning
  6. Challenge

    Config loader

    …is outside its range in RANGES , a safe_mode that is not true or false , a log_level that is not in LOG_LEVELS . After the config, print them all, or Config OK : 4 problems: downlink_rate_kbps: must…

    Write the code Hard 3 stages project json configuration validation
  7. Article Mini projects

    Medical dispenser - Don’t trust the user

    …my homework" excuse. When Time Manipulation Gets Serious While tricking trial software was harmless teenage rebellion, this vulnerability has caused real disasters. In 2012, a major trading firm lost…