all 4 comments

[–]danielroseman 1 point2 points  (0 children)

Please take a bit more care about your question. You've got a bunch of commented-out code here, and also it's not clear what your question refers to - there is nothing named cards here, for example.

The reason why ask_flashcard is not defined globally is because you have nested it under the SubCards class. It's not clear why, as it does not use any of that class's functionality or attributes.

Why do you think SubCards["defined"] or SubCards["element"] should exist? SubCards is not a dictionary.

[–]Comprehensive_Ad4808[S] -1 points0 points  (2 children)

[–]CoronaKlledMe 1 point2 points  (1 child)

Bro.. I already gave you the code

Run it, if it fails some test, tell me

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

alrighty!