Results for “type()”

Showing 51–60 of 73

  1. Article Python Fundamentals

    How to Start Programming in Python Fast

    …Navigate to the directory where your Python file is saved. Type python your_file_name.py and press Enter. (Note: On some systems, you may need to use python3 instead of python .) For example, if you…

  2. Challenge

    Telemetry from CSV

    Point the feed parser from "Parse the whole feed" at telemetry.csv: read it with csv.DictReader, using the header row for the field names, then find the hottest temperature reading, comparing the…

    Write the code Medium 2 stages csv csv.DictReader files open
  3. Article Python Fundamentals

    A Practical Guide to Getting Started with Programming

    …code editor you have Create a new file called first.py Type this code and save your file: # This is your first program moon_distance = 384400 mars_distance = 225000000 print(f"The moon is…

  4. Challenge

    Test the parser

    …returns with the dict you expect, so every field and its type are checked. When they all hold, print: All checks passed For example, a line from the feed, "2026-03-14T09:30:05Z,ENG-2,412.5,C" , should…

    Write the code Medium 2 stages testing assert parsing None
  5. Challenge

    File name from data

    …and remove any spaces around it first, since people type those into forms. The date is the first 10 characters of the timestamp. A folder for each sensor Each sensor's files go into a folder of their…

    Write the code Easy 3 stages strings f-strings lower replace
  6. Challenge

    Log line format

    …code that builds these lines from values, so nobody has to type them by hand. Fill in the pattern The starter code gives you three values. Print them as one log line, in exactly this shape…

    Write the code Easy 2 stages f-strings print logs formatting
  7. Challenge

    Missing reading

    …of a number, and the check from "Alert level" stops with a TypeError in the middle of a pass. Extend your check so a missing reading is reported, not crashed on, then handle missing values in the…

    Write the code Medium 2 stages if else None is None
  8. Challenge

    Accept the right files

    …before it's accepted, then make the checks work for paths typed on a Windows PC. Check the ends Print whether the path starts with telemetry/ and whether it ends with .csv : In telemetry/: True CSV…

    Write the code Easy 2 stages strings startswith endswith paths