mercredi 26 mai 2021

Errors and Exceptions:C2M5L4_Errors_and_Exceptions-V2

import random

participants = ['Jack','Jill','Larry','Tom']

def Guess(participants): my_participant_dict = {} for participant in participants: my_participant_dict[participant] = random.randint(1, 9) if my_participant_dict['Larry'] == 9: return True else: return False

print(Guess(participants))




Aucun commentaire:

Enregistrer un commentaire