Results for “get”

Showing 31–40 of 57

  1. Article Python Fundamentals

    Online Python Editor

    …your browser tab. Terminal Experience, Browser Convenience Get real terminal-style output without SSH or complex setups. Your code runs exactly as you'd expect, with proper formatting and error…

  2. Challenge

    Retry the uplink

    Commands to the spacecraft don't always get through the first time: the radio can time out or lose the carrier. The uplink software tries again, but only a few times, so that a dead link doesn't block…

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

    Round or cut?

    …manifest needs whole kilograms, and there are two ways to get rid of the decimals: int() and round() . Most of the time they agree. When they don't, a crate can end up a kilogram lighter on paper than…

    Write the code Medium 3 stages int round rounding type conversion
  4. Article Mini projects

    Base 6 Number System in Python

    …decimal_number while number > 0: remainder = number % 6 # Get the last base-6 digit digits.append(str(remainder)) number = number // 6 # Remove that digit # Remainders come out in reverse order, so we…

  5. Article Python Fundamentals

    Nested Loops in Python

    …another loop. Sounds straightforward, but a lot of people get confused here. We use them when we need to go through multidimensional data - Excel tables, scanning a planet's surface point by point…

  6. Article Python Fundamentals

    Python Books for Beginners

    …Edition - Eric Matthes If you're looking for a book that gets you writing actual Python code quickly, this is it. Matthes doesn't waste time with excessive theory - you'll be coding from chapter one…

  7. Article Mini projects

    Calculate your weight on different planets in Python

    …mass * gravity This function multiplies mass by gravity to get weight. Now, let's get input from the user: mass = float(input("Enter your mass in kg: ")) print("Available planets:") for planet in…

  8. Challenge

    Safe number input

    …. Make it ask again instead, for as long as it takes to get a usable number. Ask until it's a number Keep asking until the input converts to a number. For anything that doesn't, print Not a number…

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

    Parser function

    …too, and copying the loop into each of them is how bugs get fixed in one place and not the other. Turn the parsing into a function that any program can call, then let it decide on its own which lines…

    Fix the code Medium 2 stages functions return dictionaries None
  10. Challenge

    Duplicate events

    …arrived, it sends it again. Mission Control would rather get an event twice than not at all, but the event board must show each one once. Drop the repeated events, then report which ones were…

    Write the code Medium 2 stages sets add in deduplication