python basics

Run Settings
LanguagePython
Language Version
Run Command
#int and float #int- whole number, float - decimal print(type(2 + 4)) #6 - int print(type(2 - 4)) #2 - int print(type(2 * 4)) #8 - int print(type(2 / 4)) #0.5- float print(type(9.9 + 1.1)) #11.0 - float print(type(1 + 2.0)) #3.0 - float print(2 ** 3) #power of print(9 // 4) #prints division answer rounded down to the nearest whole number print(5 % 4) #prints remainder of a division #math functions print(round(3.2)) #rounds down the number print(round(3.9)) #rounds up the number print(abs(-20)) #returns 20 the absolute value of the argument(positive number)
Editor Settings
Theme
Key bindings
Full width
Lines