Guest User

Untitled

a guest
Feb 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # -*- coding: iso8859-9 -*-
  2.  
  3. username="Mustafa Serhat"
  4. password="pythonaddict"
  5. creditcard="1234-5678-9123-4567"
  6.  
  7. x=input("Enter the 5,6,7th. char. of your username : ")
  8. y=input("Enter the 5th, 9th and last char. of your credit card : ")
  9. crdt=creditcard[5]+creditcard[10]+creditcard[18]
  10. usr=username[4:7]
  11.  
  12. if x==usr and y==crdt:
  13. print("Well done !")
  14. print("Your password is", password)
  15. else:
  16. print("Wrong !!!")
Add Comment
Please, Sign In to add comment