Show Menu
Cheatography

MUIDSTIM Cheat Sheet by

MUIDSTIM

Vocabulary

Syntax
The structure of a program.
Script
A program stored in a file (usually one that will be interp­reted).
variable
holds a value and can be changed
string
a list of characters such as numbers, letters, symbols

Multip­­li­c­ation and Exponents

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

Functions

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())

Math Operations

==
equal to
!=
not equal to
+
plus
-
minus
*
times
/
divide
%
the remainder from divide numbers
**
power
<
less than
>
more than
<=
less than or equal to
>=
more than or equal to
 

Addition

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

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.