Results for “first program”

Showing 11–20 of 47

  1. Article Mini projects

    Base 6 Number System in Python

    …three fingers each. In this article, you'll build Python programs that convert between decimal, base-6, and Eridian notation.

  2. Challenge

    Survive bad lines

    …comments": a faulty sensor sends ERR and float() stops the program. Skip lines that fail to convert and count them, then let one try cover short lines too and print each error.

    Write the code Medium 2 stages errors try except ValueError
  3. Challenge

    Telemetry from CSV

    …whole feed" still reads two lines somebody pasted into the program. The ground station now delivers a proper export, telemetry.csv , with a header row, and it changes every few seconds. Read the file…

    Write the code Medium 2 stages csv csv.DictReader files open
  4. Challenge

    Shared default list

    …new log held every sample ever taken. Predict what the program prints, find out where the old samples come from, fix the default, then write a function that gets it right from the start. Predict and…

    Fix the code Medium 3 stages functions default values mutable defaults None
  5. Article Mini projects

    Medical dispenser - Don’t trust the user

    …The problem isn't that computers are stupid - it's that programmers sometimes forget that time isn't as immutable as we'd like to believe. Building Our Space Medication Dispenser Let's create a…

  6. Article Python Fundamentals

    Python If/Else for Beginners

    …for beginners who want to chart the control flow of their programs.

  7. Article Python Fundamentals

    Python Books for Beginners

    …What I particularly appreciate is the book's structure: first half covers Python fundamentals (variables, lists, dictionaries, functions, classes), while the second half walks you through three…

  8. Challenge

    Strings don't change

    The inspection tool marks rejected crates by changing the first letter of their code from P to X . It looks like the simplest line in the whole program, and it crashes every time. Predict what…

    Fix the code Easy 3 stages strings immutability slicing TypeError
  9. Challenge

    Telemetry pipeline

    …ground station's export arrives every few seconds. Your program has to read it, refuse what it can't trust, raise the alarm on what is out of range and leave a summary the dashboard can read. Three…

    Write the code Hard 3 stages project csv json files