Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: iso8859-9 -*-
- username="Mustafa Serhat"
- password="pythonaddict"
- creditcard="1234-5678-9123-4567"
- x=input("Enter the 5,6,7th. char. of your username : ")
- y=input("Enter the 5th, 9th and last char. of your credit card : ")
- crdt=creditcard[5]+creditcard[10]+creditcard[18]
- usr=username[4:7]
- if x==usr and y==crdt:
- print("Well done !")
- print("Your password is", password)
- else:
- print("Wrong !!!")
Add Comment
Please, Sign In to add comment