Results for “difference”

Showing 11–20 of 40

  1. Article Python Fundamentals

    Python print() Function

    …print('Mission Control says: "All systems go!"') # Using different quote types print('Captain\'s log: Day 1') # Using backslash to escape single quote # Including special characters print("Temperature…

  2. Article Python Fundamentals

    Python Functions for Beginners

    …one section of this article twice, make it this one. The difference between print and return catches nearly every beginner I've taught. It usually shows up as "my function works, I can see the answer…

  3. Challenge

    Unit mix-up

    …Investigate. Find the variable that holds a distance in a different unit and store its name, as text, in odd_one_out . Then convert it: one mile is 1.609344 km. Store leg 2 in km, as a number, in…

    Fix the code Easy 3 stages units conversion constants debugging
  4. Article Python Fundamentals

    Variables and data types in Python

    …variables as sticky notes for storing data. Just like different components store different types of fuel or equipment, variables in Python can store different types of data. In Python, creating a…

  5. Challenge

    Config loader

    …copy and update() fills it in. json.dumps(value) shows the difference between "256" and 256 . Every problem at once Check every saved setting, in the order it was saved, and collect a message for each…

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

    Medical dispenser - Don’t trust the user

    …these patterns aren't just best practices - they're the difference between a successful mission and disaster. But even in our earthbound Python projects, applying these principles makes our code more…