+ 1
Why is it vice versa in my code?? (Done)
https://code.sololearn.com/cu1QBqBJQ7Um/?ref=app I wanted to make only numerical pin codes But now my cod returns only text pin codes⊠Why?? pin = input("Enter four numbers: ") try: x = list(pin) if len(x) == 4: print("PIN code is created") else: print("Use only four numbers") except: print("Please use only numbers")
2 Answers
0
You just need to write:
pin = int(input("Enter four numbers: "))
0
Done. I thinkâŠ