Strings & Console Output Bug


#1



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

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)


#2

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.


#3

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


#4

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