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

Asked 2 months ago, Updated 2 months ago, 2 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")
elifn>=30:
  print ("Midsummer Day")
elifn>=25:
  print ("Summer Day")
else:
    print("Not hot")

python

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


© 2022 OneMinuteCode. All rights reserved.