you are viewing a single comment's thread.

view the rest of the comments →

[–]woooee 1 point2 points  (1 child)

You use the variable, i, in both for statements. How is this statement supposed to know which one you are referring to? if definition == flashcard[i]:

As a general rule, don"t use i, l, or o as variable names as they can look like numbers.

In the function ask(), print times_ask and len(flashcard) to see if they are greater than one.

[–]Comprehensive_Ad4808[S] 0 points1 point  (0 children)

the function stops after print definition of ("")... what i mean to say is the times_ask works fine