Results for “get”

Showing 41–50 of 57

  1. Challenge

    Parse a telemetry line

    …as a character in a string: fields[0] is the first. Lists get a stage of their own later. The value as a number split() gives text, so "412.5" + 273.15 would stop with a TypeError . Turn the value…

    Write the code Easy 2 stages strings split parsing csv
  2. Challenge

    Path in a config

    …tab. That's exactly what happened to \new and \telemetry . Get the paths to print the way Windows writes them. Raw string Run the script and look at the output: the path is split across two lines…

    Fix the code Easy 2 stages raw strings escape sequences paths print
  3. Challenge

    Broken boot script

    …line runs. That's a SyntaxError . Find what's missing and get the boot script running again. Missing quote Run the boot script. Instead of booting, it stops with an error: one line is missing its…

    Fix the code Easy 3 stages SyntaxError debugging print quotes
  4. Article Python Fundamentals

    Python print() Function

    …it on the screen. Multiple values display Sometimes we get multiple values from one sensor to ensure it's operating correctly. Let's check three measurements taken in a short period: telescope_temp_1…

  5. Article Python Fundamentals

    How to Start Programming in Python Fast

    …that reads and executes our code. Here's how to get it: For Windows : Visit the official Python website and download the latest version. Remember to check " Add Python to PATH " during installation…

  6. Challenge

    Ground station pick

    …Check for impossible values first; only a valid longitude gets converted and gets a station.

    Write the code Easy 2 stages if elif else ranges
  7. Challenge

    Clear error messages

    …the fuel budget came out 62.5 kg short. A function that gets a value it can't work with should say so, loudly and clearly, at the moment it happens. Raise ValueError Make fuel_needed() raise…

    Write the code Medium 2 stages errors raise ValueError TypeError
  8. Challenge

    Shared default list

    …come from, fix the default, then write a function that gets it right from the start. Predict and run Don't run the code yet. Read it and decide what it will print on its first line. Write your guess…

    Fix the code Medium 3 stages functions default values mutable defaults None
  9. Challenge

    Check every reading

    …one number at a time: after each pass the ground station gets a whole list of readings, and every one of them needs the same check. Run the check over the whole list, then add a summary the flight…

    Write the code Easy 2 stages for loop lists if elif