variablesstr() = string int()= integer float() = decimal numbers len() = length of word datetime() = date boolean() = true/false input () = input data from users s.lower() = uncapitalised s.upper() = capitalised # = line comment """....""" = multi line comment. |
calculation pock pock loves you
== means equal != means unequal > means more than < means less than >= means more than or equals <= means less than or equals % means module (reminders) / means division for decimals // means division from integers * means multiplication ** means power to ... |
conditional statementsconditions: string + string is possible string + number is impossible number + number will work as addition number - number will work as subtraction string * string will fail for sure string ** string will also end up fail! string ** number will fail as well! |
IT vocals are impossible to learnvariable = represents value string = characters that could be number or letters float = decimal integer = rounded numbers modulo = remainders boolean = true/false not-and-or syntax = structure of code length = length of string(words) list = ............. |
Cheatography
https://cheatography.com
python loves you Cheat Sheet (DRAFT) by pea loves you
cheaters may fail
This is a draft cheat sheet. It is a work in progress and is not finished yet.