Show Menu
Cheatography

My python cheat sheet - Stang 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
str()
A list of number, letter and symbols
len()
The length of the string.
#
comment, no effect
import random­+ra­ndo­m.c­hoice()
pick random item in the list
 

Vocabulary

variable
holds a value and can be changed
string
a list of characters such as numbers, letters, symbols
Integer number
Whole number­/co­unting number
Floating point
The number in decimal
Syntax
Gramma­r/S­tru­cture og language
Modulo
Find the remainder
 

Math

==
equal to
!=
not equal to
<
less than
>
more than
<=
less than or equal
>=
more than or equal
%
modulo, find the remainder
 

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.