statements operators functions string methods set methods tuple methods dict methods file methods list methods exceptions exception types comprehensions multidimensionals os lambdas subprocess
Intro to Python

Session 1 Session 2 Session 3 Session 4 Session 5 Session 6 Session 7 Session 8 Session 9




pythonreference.com

search statements, functions, methods, exceptions*

hide categories

% modulus operator remainder from division of two numbers
* (string repetition operator) repeat a string multiple times
* numeric multiplication operator multiply one number by another
** exponent operator raise one number to power of another
+ numeric addition operator add two numbers together
+ with strings concatenate two strings into a new string
- subtraction operator subtract one number from another
/ division operator divide one number by another
exit() terminate execution immediately
float() return float object based on argument
input() return string of user input from keyboard
int() return integer object based on argument
len() with string return integer length of a string
print() write text to the screen
round() round a number to specified decimal places
str() convert any object to a string
type() return type of any object