Python numbers
Numbers
# numbers.py - file name
number = 1
decimal_number1 = .5
decimal_number2 = 10.5
# you can use the underscores to make the numbers more visible when coding
# The underscores will not be added to the output
salary = 21_500_000
pi = 3.142
r = 5
# simple arithmetic operation using python number type
area = pi * r ** r
print(area)python numbers.pyLast updated