I don't know why Python code is causing errors.

Asked 5 months ago, Updated 5 months ago, 10 views

I'm a beginner on the second day for the first time.I'm trying to copy it, but I don't know why there was an error, so please let me know if you don't mind.

n=int("Enter temperature:")
if n>=35:
  print ("hot weather")
  print ("Midsummer Day")
  print ("Summer Day")
    print("Not hot")


2022-09-30 11:28

1 Answers

) is not enough.

n=int("Enter temperature:")
n=int(input("Enter Temperature:"))

2022-09-30 11:28

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.