N or y?


#1

Hi,
The course asks me to givea Y(yes) or a N(no).
I gave Y and it says Invalid Syntax!!!
Here is what it told me.

anwser = "Left"
if == anwser “Left”:
print “This is the Verbal Abuse Room, you heap of parrot droppings!”

Will the above print statement print to the console?

Set response to ‘Y’ if you think so, and ‘N’ if you think not.

I NEED HELP!!


#2

you are given the following lines of code

response =   #set the value here

answer = "Left"
if answer == "Left":
    print "This is the Verbal Abuse Room, you heap of parrot droppings!"

you just have to set the value for response variable.

now consider the condition ( if answer == "Left": )you are given is it True or Flase ?

True means it’ll print the statement in the console.
False means simply it’ll print nothing.

so do you think it’ll print?

If yes then set response equal to 'Y'

If no then set response equal to 'N'

Note: Don’t change anything.just set the value for response


#3

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