Learning Python, Help

Hello Everyone,
I’m new to programming and trying to understand some small Python code. I’m not sure why it’s not working can I get some help please? If I am breaking the community guidelines I apologize it’s not my intentions, I’m sorry.
Here is the code;

def calculate_diameter(newnum):
return newnum / 3.14

circumference = input("Enter the circumference of a circle ")
newnum = int(circumference)


you had two mistakes.

  1. line 2 need to be intended. This is very strict in Python.
  2. when you call the function you have to include the parameter.
    Hope this helps!
1 Like

did you get that answer working ?i can help

Thank you Pillai that was very helpful. Thanks again.