We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,608 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

i got error please help..

`

print  "Welcome to my quiz"
begin = raw_input("would you like to begin?: ")
if begin =="yes":
    print "A)True"
    print "B)False"
    q1 = raw_input("Is Steve Jobs is the founder of Apple?")
    if q1 == "A" or q1 == "a":
        print "well done! you got it right!"
else:
    print "thanks for trying my quiz, goodbye :)"

`

i got syntax error for my fourth line for "

2
Contributors
1
Reply
19 Hours
Discussion Span
7 Months Ago
Last Updated
2
Views
Question
Answered
dean.ong.14
Junior Poster in Training
52 posts since Aug 2012
Reputation Points: -8
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 7 Months Ago

Sorry I don't konw what's worng with your fourth line.It runs well in my PC.

Newbie Poster
1 post since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.1728 seconds using 2.68MB