0
How can i make my input accept a certain number of characters.
Pin=input("enter five digit")
2 Answers
+ 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