#learnpython
@elduvelle hi! Take a look to this, please: https://github.com/JoseMachete/learning_python/blob/main/highest_card.py
The first part of the game works, it draws and prints two random cards. The problem comes when the if /elif statements have to print the results. I'm trying to pass lists made of functions and that second block it just prints nothing. What am I missing here?
Thank you in beforehand!
@josemachete79
hmm,
this use of functions as variables is very strange to me, but if you say that the first part works then that's great.
I think one of the problems could be that you use '==' here
if player_card == aces and computer_card == aces:
when you should probably use 'in' instead (aces is a list, not a single card)
however because the things that are inside 'aces' are actually functions, I'm not sure that this will work.. I guess I'd have coded this all using strings instead?
let me know if this helps? if not could you print the contents of 'player_card' and 'aces'?