Can someone check over this code?


#1

File "python", line 9
if len(orig) == 3:
^
SyntaxError: invalid syntax


Use the length of the response to determine what the console should output.

name = raw_input("Hello. What is your name.")

print "Ah, so your name is %s." % (name)

print "my name is bob"

original = raw_input("What do you want to talk about, me or you"

if len(original) == 3:
print "Well im a computer i don't realy do anything"

if len(original) == 2:
print "Well then, tell me about you"


#2

look at the parentheses in the line above the error message


#3

the if len(orig) == 3:?


#4

that is the line with the error message, the line above the error message:

original = raw_input("What do you want to talk about, me or you"

look at the parantheses


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.