Cheatography
https://cheatography.com
Functionsprint() | displays information on the screen | input() | receives information from the user | int() | converts a value to an integer |
Additionstring + string | combine together | string + number | crash | number + number | math - addition |
Math Symbol== | equal to | != | not equal to | + | plus | - | minus | * | times | / | divide | % | remainder | ** | power | < | less than | > | more than | <= | less than or equal to | >= | more than or equal to |
| | Vocabularyvariable | holds a value and can be changed | string | a list of characters such as numbers, letters, symbols |
codeprint (name.upper()) | print (name.lower()) | print (name.capitalize()) | print (name.title()) |
| | Multiplication and Exponentsstring * number | combine that string multiple times | string * string | crash | number * number | math - multiply | string ** string | crash | number ** number | math - exponents | string ** number | crash |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment