Lesson 2. Integer and float numbers
4/10. Very big and very small numbers
You can write floats with very big or very small absolute values using the scientific notation. Eg., the distance from the Earth to the Sun is 1.496·1011 meters, or1.496e11
in Python. The mass of one molecule of water is 2.99·10-23 grams,
or 2.99e-23
in Python.Instructions
Click "Run" to see what happens in output!
Hint
A billion is 109, so you can print3.9e9
# It is well-known that life on Earth # appeared approximately 3.9 billion years ago. # You can check it on Wikipedia, for example. # Assign this value in the scientific # notation to any variable, # and then print that variable.