Possible Error with Lesson 2, 8/16


#1

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


#2

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).


#3

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