Created
July 13, 2021 08:39
-
-
Save codewithpom/d0202a4416e55a98e4d3abda575abcd7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number = 9.5 | |
# or you can do this | |
number = float(9) | |
# the above line converts nine from int to float and then save it in the number variable | |
# or even this can be used | |
number = 9.0 | |
# in the above line we have added a decimal point so it is converted into a float |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment