Please help as soon as possible!


#1



https://www.codecademy.com/courses/python-beginner-sRXwR/0/2?curriculum_id=4f89dab3d788890003000096#

File "python", line 4
viking="Teresa
^
SyntaxError: EOL while scanning string literal


For it to be correct.


# Assign your variables below, each on its own line!
caesar="Graham"
praline="John"
viking="Teresa
# Put your variables above this line
print caesar
print praline
print vik


#2

Problem1
here..
viking="Teresa
You forgot to put ending quotes.

Strings are always surrounded by quotes!
starting quote shows start of a string and ending quote shows ending of a string.
so putting quotes is important. (python uses quotes to identify start and end of a string)

like..

(using double quotes)

myName = "greenTreeMee"

one more thing.. you can use single quotes too..

myName = 'greenTreeMee'

Both are valid and you can use any of them!

problem2.

print vik

your variable is viking not vik!


#3

oh i put viking when I copied it, it just didnt show.


#4

and thanks so much it worked!


#5

cheers!
youre welcome! :thumbsup:


#6

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