dimanche 3 avril 2016

Why doesn't the 'if' function work? python

def guessinggame ():
    d = input("Enter a random word: ")
    e = input("How many letters does the word has?: ")
    f = len(d)
    if( "e" == len(d)):
       print("You are right!")
guessinggame()

if I try to run this code, it will work, but it will skip the "if" function... Help please. thanks!

Aucun commentaire:

Enregistrer un commentaire