0

enter image description here

I dont know what's went wrong in the 1st one when I type 5 it suppose to stop just like in the second one

thanks for your help.

1 Answers1

1

You need to convert the str returned by input() to an int using

a = int(input("Enter number: "))
abhiarora
  • 9,743
  • 5
  • 32
  • 57