For measurements in measurement
For measurements in measurements:
First, your code has built-in capitalization like
print() function which are case sensitive (maybe you are from the Microsoft world?).
Second, python defines blocks of code or scope by indentation, which is missing from your snippet.
Third, you have defined in reverse cycle; a for loop after the keyword, defines the name of the variable that represents the object at each loop and then the iterable, as in the following example:
for x in range(0, 3): print("We're on time %d" % (x))
Ultimately, you need to turn your code into this if you want it to work:
measurements = (8, 20) print("Original measurements:") for measurement in measurements: print(measurement) measurements = (170, 72) print("\nModified measurements:") for measurement in measurements: print(measurement)