E
eli m
Hi guys, i have a program like this: (A lot of code is not included)
run = 0
while run == 0:
raw_input("Type in a function:")
if function == "Example":
print ("Hello World!")
else:
print ("blah blah blah")
The problem is that whenever i type in example with a space after it then it prints the else statement.
My question is, how do i get it to except input with spaces?
run = 0
while run == 0:
raw_input("Type in a function:")
if function == "Example":
print ("Hello World!")
else:
print ("blah blah blah")
The problem is that whenever i type in example with a space after it then it prints the else statement.
My question is, how do i get it to except input with spaces?