0
How can i make my input accept a certain number of characters.
Pin=input("enter five digit")
2 odpowiedzi
+ 2
Benjamin
Usually you can't but you can validate through string length.
pin = input()
if len(pin) > 5:
print ('Enter 5 digits number')
else:
print (pin)
+ 1
🅰🅹 (Challenge Accepted) thank you very much