Summary
You were tasked with creating an application that prompts the user for the distances from the sun for two planets, and then calculates the difference between the two distances. You used the arithmetic operators in Python, and functions such as abs
and int
to convert values.
You learned:
- The mathematic operators available in Python.
- The order of operations.
- How to convert strings to numbers.