Last answered:

23 Oct 2021

Posted on:

28 Apr 2021

0

Resolved: Error code in Question 1 program_Variables and strings

I can't run the program in question1 of variable and string. I get this message. Could you please help me?
The code: { radius = float(input("Please enter the circle radius:"))
pi = 3,14159
area = pi * radius**2
print("You entered", radius, "The area of the circle is ", area) }image.png

2 answers ( 1 marked as helpful)
Posted on:

08 Oct 2021

0

unexpected indent

Posted on:

23 Oct 2021

0

You should use '.' (full stop) instead of ',' (comma) for the float number ---> pi = 3.14159 instead of 3,14159

Submit an answer