|
print
|
Show information that you want on the screen
|
|
int
|
Change number to be number integer
|
|
float
|
Change number to be decimal number
|
|
input
|
Gain information from user
|
|
str
|
A list of number, letter and symbols
|
|
len
|
The length of the string
|
|
#
|
Comment, no effect
|
|
string + string
|
Combine together
|
|
string + number
|
CRASH!
|
|
number + number
|
Addition(Math)
|
|
string*number
|
Combine that string
|
|
string*string
|
CRASH!
|
|
number*number
|
Multiply(math)
|
|
string**string
|
CRASH!
|
|
number**number
|
Exponent(math)
|
|
string**number
|
CRASH!
|
|
Variable
|
Hold a value and can be change
|
|
String
|
A list of character such as nubmer, letter and symbols
|
|
Interger number
|
Whole nubmer/ counting number
|
|
Float number
|
The numer in decimal
|
|
Syntax
|
Grammar/Structure of language
|
|
Modulo
|
Find the remainder
|
|
Boolean
|
True/False
|
|
==
|
equal to
|
|
!=
|
no equal to
|
|
<
|
less than
|
|
>
|
more than
|
|
<=
|
less than or equal to
|
|
>=
|
more than or equal to
|
|
%
|
Modulo, find the remainder
|
while True:
word = input("Please enter a word")
index = 0
reverse = ' '
while int(index) < len(word):
reverse = word[index] + (reverse)
index = int(index) + 1
print ("Reverse:",reverse)
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.