|
==
|
equal to
|
|
!=
|
no equal to
|
|
<
|
less than
|
|
>
|
more than
|
|
<=
|
less than or equal to
|
|
>=
|
more than or equal to
|
|
%
|
Modulo, Find the remainder
|
|
string + string
|
combine together
|
|
string + number
|
CRASH
|
|
number + number
|
Addition Math
|
|
user_number
|
''
|
|
while user_number !
|
' 0 ' :
|
|
user_number
|
input ("Enter a number to convert to binary")
|
|
number
|
int(user_number)
|
|
binary_string
|
' '
|
|
while (number > 0):
|
|
|
remainder
|
number%2
|
|
binary_string
|
str(remainder)+ binary_string
|
|
number
|
number//2
|
|
print ("Binary string)
|
is", binary_string
|
|
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)
|
|
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
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.