This forum is now read-only. Please use our new forums! Go to forums
Advanced Printing - Error after input.
Posting plain text and image for reference.
When I answer the third question and hit return, I get this error:
What is your name? blake
What is your quest? i seek the grail
What is your favorite color? green... no wait!
Traceback (most recent call last):
File "python", line 6, in <module>
ValueError: unsupported format character ',' (0x2c) at index 21
The code I used:
name = raw_input(“What is your name?”) quest = raw_input(“What is your quest?”) color = raw_input(“What is your favorite color?”)
print “Ah, so your name is %, your quest is %, “
“and your favorite color is %.” % (name, quest, color)
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
ahh, duh - Thank you for your response!