0

I'm completely new to python and not sure what I have done wrong.

value = int(input("Enter your value in radians: "))

pi = 3.141592653589793238
num1 = 180

if (value > 0):
    print("The answer is:" + value*pi/num1)
else:
    print("Incorrect input")
S P Sharan
  • 1,101
  • 9
  • 18
  • You should use a code block to present your code. Anyhow, the problem is that you are trying to concatenate the result of `value*pi/num1` with thr string `The answer is` and that do not work. Change the previous to `str(value*pi/num1)` – diegus Jul 02 '22 at 13:31
  • 1
    try using this for print => `print(f"The answer is: {value*pi/num1}")` – Nesi Jul 02 '22 at 13:35

0 Answers0