Try to search your question here, if you can't find : Ask Any Question Now ?

Is there something wrong with my print statement?

HomeCategory: stackoverflowIs there something wrong with my print statement?
Avatarjulie asked 1 week ago

I have to enter a diameter, then change it to a float, and after divide the diameter by 2. The beginning of my code works, but when I coded, “print (radius)” it stopped working. Maybe I made a mistake?

diameter = float(input("Enter a diameter:  "))

#changing diameter to type float

myfloat = diameter

#creating a variable name radius
# assign radius the value og diameter/2

radius = (diameter/2)   // this where it went wrong

print = "The radius is equal to"  

I keep getting, “‘str’ object is not callable”

1 Answers
Best Answer
AvatarMannu answered 1 week ago
Your Answer

12 + 18 =

Popular Tags

WP Facebook Auto Publish Powered By :