ZTM-TCPD-06

Run Settings
LanguagePython
Language Version
Run Command
# _user_IQ = 190 # _xxx start with underscore in python signify a private variable # user_IQ = 190 # print = 190 iq = 190 user_age = iq/4 a = user_age # print(user_iq) # print(print) # https://www.w3schools.com/python/python_ref_keywords.asp print(user_age) print(a) #constants : variables with values not going to be changed PI = 3.14 # use ALL CAPITALS to denote CONSTANTS # still can work but not to use as may confuse with real dunker system variables # __hihi = 2 # 2 undercores together means dunker, not create one as they are reserved for python system # print(__hihi) a,b,c = 1,2,3 # rapid way of assigning values to variables print(a) print(b) print(c) iq = 100 user_age = iq / 5 # (iq / 5) this is an expression - a piece of code that produce a value # while a statement is the entire line of code # augmented assignment operator - short hand for operator assignment some_value = 5 # some_value = 5 + 2 # some_value = some_value + 2 # some_value += 2 # some_value -= 2 # some_value *= 2 some_value /= 2 print(some_value)
Editor Settings
Theme
Key bindings
Full width
Lines