PYTHON CORE · LESSON 13
Fractional numbers
When the whole is small · about 11 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Reprint the example. The fractional number is entered through float.
length = float(input("Длина? "))
print(length + 1.5)Open the editor for class workSolve it yourself
Ask the fractional price, save it in price and output the price plus 0.5. Think of the text yourself.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework