|
Syntax
|
The structure of a program.
|
|
Script
|
A program stored in a file (usually one that will be interpreted).
|
|
variable
|
holds a value and can be changed
|
|
string
|
a list of characters such as numbers, letters, symbols
|
|
string *
|
combine that string
|
|
number
|
multiple times
|
|
string * string
|
crash
|
|
number * number
|
math - multiply
|
|
string ** string
|
crash
|
|
number ** number
|
math - exponents
|
|
string ** number
|
crash
|
|
print()
|
displays information on the screen
|
|
input()
|
receives information from the user
|
|
int()
|
converts a value to an integer
|
|
print (name.upper())
|
|
|
print (name.lower())
|
|
|
print (name.capitalize())
|
|
|
print (name.title())
|
|
==
|
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
|
|
string + string
|
combine together
|
|
string + number
|
crash
|
|
number + number
|
math - addition
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.