Results for “write”

Showing 51–60 of 95

  1. Challenge

    Sign-up cleanup

    …and say exactly what was dropped and why. Clean the text Write clean_name(name) , which trims the name, joins its words with single spaces and capitalises each word, and clean_email(email) , which…

    Write the code Medium 2 stages project strings strip split
  2. Challenge

    Missing index

    …run the code yet. Read it and decide what it will print. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Fix the code Easy 3 stages lists indexing IndexError len
  3. Challenge

    Running totals

    …Read it and decide what it will print on its last line. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Write the code Easy 3 stages variables -= += updating values
  4. Challenge

    Round or cut?

    …run the code yet. Read it and decide what it will print. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think…

    Write the code Medium 3 stages int round rounding type conversion
  5. Challenge

    Statistics module

    Refactor the temperature summary: delete the hand-written mean() and median() and use statistics.mean() and statistics.median() instead, then add the standard deviation and handle passes with too few…

    Fix the code Easy 2 stages statistics mean median stdev
  6. Challenge

    Config loader

    …the module started with the wrong settings without a word. Write the loader that fills in what is missing, checks what is there, and lists every problem before anything starts. Defaults first Load…

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

    Base 6 Number System in Python

    …learn. What Is a Base-6 (Senary) Number System? Before we write any Python, let's make sure we understand what "base" actually means in the context of number systems. In our everyday decimal system…

  8. Article Mini projects

    Calculating Escape Velocity in Python

    …needed to break free from a planet's gravity. Today we'll write a program that calculates this speed for any celestial body using NumPy - Python's powerful library for scientific computing. Why NumPy…

  9. Challenge

    Daily mission report

    …an empty line, the saved line, and the file as it was written: Saved report.csv: subsystem,status,alerts,uptime_pct POWER,OK,3,99.8 GNC,WARN,2,97.25 PROP,OK,0,100.0 COMMS,DEGRADED,2,94.6…

    Write the code Medium 2 stages project formatting f-strings alignment
  10. Challenge

    Landing site

    …it, then print it the way maps and mission documents write coordinates. Unpack the pair Unpack the tuple into two variables, lat and lon , in one line, then print both with four decimal places…

    Write the code Easy 2 stages tuples unpacking formatting coordinates