Credit Card Validator | Python Project | Part - 1

preview_player
Показать описание
Welcome To Our channel
In this video, you will learn to make credit card validator project using python. It's part-1.
****************************** code code code *******************************
# making a credit card algorithm
# part 1
def get_card():
while True:
card = int(input("Enter Card: "))
card_len = len(str(card))
if card_len (greater than) 13 and card_len (less than) 16:
print("Card okay for now.")
break
else:
print("card not in valid length")
continue
return card

# making object
print(get_card())
****************************** code code code *******************************
So consider Giving a video a like, share it with your friends and Subscribe to our channel too for more videos.
Рекомендации по теме