Ds160123- pincode by using regex

import re
pincode=input(‘enter the pincode’)
result=re.findall(‘^[1-9]{1}\d{5}$’,pincode)
print(result)

1 Like

Good going @Satyendrakeer23