Created
June 30, 2021 15:20
-
-
Save sai-sondarkar/af4f8f98e271a18f3ffa46d480d17dbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
maxTicketsAvalibale = int(input("Enter the maximum tickets avaiable ")) | |
participants = [] | |
for temp in range(maxTicketsAvalibale): | |
st = "Ënter the participant name - "+ str(temp + 1) + " - " | |
name = input(st) | |
participants.append(name) | |
print("All our participants - ",participants) | |
n = random.randint(0,maxTicketsAvalibale-1) | |
print("Winner of the lottery - ",participants[n]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment