Show Menu
Cheatography

Python Cheat Sheet Cheat Sheet by

Addition

string + string
combine together
string + number
crash
number + number
math - addition

Functions

print()
displays inform­ation on the screen
input()
receives inform­ation from the user
int()
converts a value to an integer
 

Vocabulary

variable
holds a value and can be changed
string
a list of characters such as numbers, letters, symbols

code

print (name.upper())
print (name.lower())
print (name.capitalize())
print (name.title())
 

Multip­lic­ation and Exponents

string * number
combine that string multiple times
string * string
crash
number * number
math - multiply
string ** string
crash
number ** number
math - exponents
string ** number
crash
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.