What does this mena in phython : "IndentationError: unexpected indent"


#1



File "python", line 10
print " my name is %s. I am %s years old." % (string_4, string_5)
^
IndentationError: unexpected indent


string_1 = "Camelot"
string_2 = "place"
string_3 = "upset"

print "Let's not go to %s. 'Tis a silly %s. But by the way becky looks really %s today" % (string_1, string_2,string_3)

string_4 = "Abdul Mukit"
string_5 = "16"

 print " my name is %s. I am %s years old." % (string_4, string_5)


#2

it means you have indention/spacing in this line:

 print " my name is %s. I am %s years old." % (string_4, string_5)

see the space before print? remove it


#3

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