Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Word Indexer
# -*- 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 !!!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.