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…
Showing 51–60 of 95
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
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…
Challenge
…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…
Article Mini projects
…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…
Article Mini projects
…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…
Challenge
…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…
Challenge
…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…