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) }
2 answers ( 1 marked as helpful)
unexpected indent
You should use '.' (full stop) instead of ',' (comma) for the float number ---> pi = 3.14159 instead of 3,14159