Possible Error with Lesson 2, 8/16


Hi everyone, really new at python.
Just want to know, why is it wrong to set a variable as:

pi = “3.14”

But, the correct version is:

pi = 3.14

Strings and Console Output


you set the variable pi to a string when you surrounded the 3.14 with quotation marks. You were supposed to leave it as a number (don’t include the quotation marks).


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