jeudi 20 février 2020

How to I check if a randomized output from a print statement is true? [closed]

So this is the randomizer I want to get the input from:

    enemy_randomizer = [newbie_enemy, basic_enemy, amatuer_enemy, elite_enemy]

This is the code that is supposed to get it:

    print("\n" + random.choice(enemy_randomizer))
    if random.choice == newbie_enemy:

How would I get this to work?

Aucun commentaire:

Enregistrer un commentaire