Show Menu
Cheatography

function

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

code

print (name.u­pp­er())
print (name.l­ow­er())
print (name.c­ap­ita­lize())
print (name.t­it­le())

data type

false
false boolean value
false and true == False
true
true boolean value
true or false == true
non
represents " nothin­g" or "no value"
x= none
 

Addition

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

symbol

=
assigns the value on the right to variable on the left
==
test if 2 things have the same value
"­"­"
quotes out everything beneath these triple quotes until it reaches another triple quotes.
 

Vocabulary

variable
holds a value and can be changed
string
a list of characters such as numbers, letters, symbols
Integer
is a number that can be written without a fractional component
Print
evaluates each expression in turn and writes the resulting object to standard output
Floating point
numbers you write a period after the number and a zero (if its a whole number).
input
receives inform­ation from the user
 

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.