Having trouble on 5.3 Step 10.
TODO: create a function called calculate_diameter that returns the diameter given a circumference
circumference = input(“Enter the circumference of a circle”)
calculate_diameter = 3.14/circumference
calculate_diameter = int(calculate_diameter)
TODO: get the circumference from the user
circumference = input(“Enter the circumference of a circle”)
TODO: call the calculate_diameter function with the user’s input and print its result
print(calculate_diameter)
Result:
Enter the circumference of a circle 22
Traceback (most recent call last):
File “python”, line 3, in
TypeError: unsupported operand type(s) for /: ‘float’ and ‘str’
Any direct as to how I can fix this would be much appreciated.