Strings & Console Output Bug


Lesson wont let me proceed
Oops, try again. pi should equal the number 3.14--do not call str(pi) until after the print command on line 5!

it should accept my answer

"""Declare and assign your variable on line 4,
then call your method on line 5!"""

pi = '3.14  '
print str(pi)


Set your value for pi to a number, 3.14, not a string. That is what the str() is meant to return, a string value.


haha that is way easier than i thought it was. thanks for the help. i feel silly now.


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