Results for “difference”

Showing 21–30 of 40

  1. Challenge

    Read the error

    …of log Run, read, fix, repeat Day 3 has two mistakes, on different lines. Python reports only the first one it finds, so after you fix it and run again, a different error appears, on a different line…

    Fix the code Easy 3 stages SyntaxError IndentationError error messages debugging
  2. Challenge

    Waypoint distance

    …between two points comes from Pythagoras: square the differences in x and in y, add them, and take the square root. Distance A to B: 600.0 m ** raises a number to a power: dx ** 2 is dx squared, and…

    Write the code Easy 2 stages exponent square root ** Pythagoras
  3. Challenge

    Mass by category

    …weighs, because food, life support and spares go into different racks with different mass limits. Total the manifest by category, then rank the categories by mass. A total per category Add up the mass…

    Write the code Medium 2 stages dictionaries grouping get sorted
  4. Challenge

    Mission config

    …and whether this is only a dry run. Each setting is a different kind of value, and Python treats each kind differently. This challenge works in three steps. First you predict what some code prints and…

    Write the code Easy 3 stages variables data types int float
  5. Challenge

    Environment check

    …starts with that line, because the same code can behave differently in different versions. Python can tell you itself. Write the first lines of a bug report for the Python One flight software, filled…

    Write the code Easy 3 stages platform sys python version bug report
  6. Article Python Fundamentals

    Nested Loops in Python

    …text list. Both do the same scanning, just display results differently. Common Beginner Mistakes Mistake 1: Same Variable Names # BAD - inner loop overwrites x! for x in range(3): for x in range(3): #…