Challenge
Names that explain
…it, work out what each name holds, rename them so the code explains itself, then write a fuel check with good names.
Showing 1–10 of 22
Challenge
…it, work out what each name holds, rename them so the code explains itself, then write a fuel check with good names.
Challenge
…One 's lander works out the weight of each part. The code is correct, but it's full of bare numbers like 9.81 and 1000 . Programmers call them magic numbers : they work, but nobody reading the code…
Challenge
…written out three times. Every new rule would push the code further to the right. Flatten it into one condition without changing what it prints, then rewrite it so a HOLD says which check failed. One…
Article Python Fundamentals
…Learn how they work, avoid common pitfalls, and write cleaner Python code with real examples.
Article Python Fundamentals
…structures effectively while following best practices for clean and maintainable code.
Article Python Fundamentals
…about learning Python, from writing your first line of code to building real projects. No experience needed!
Article Python Fundamentals
Run Python code on your phone with real pandas, matplotlib & Pillow support. Online editor with mobile-friendly interface, CLI arguments & terminal output. No sign-up required.
Challenge
Each sampling run should start a clean log. The morning run did. The evening run started with the morning's sample already in it, and by the end of the week every new log held every sample ever taken…
Challenge
…that leaves its input alone. Predict and run Don't run the code yet. Read it and decide what it will print on its first line. Write your guess in prediction , at the top, between the quotes. Then run…
Challenge
…startswith() and endswith(), see why in isn't enough, then clean up paths with Windows backslashes, capitals and spaces first.