-
-
Save fatosmorina/afa57cb2306fd1ec61bd7baef89a0e9a 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 | |
my_list = ['a', 'b', 'c', 'd', 'e', 'f'] | |
my_list_length = len(my_list) | |
random_index = random.randint(0, my_list_length) | |
print(my_list[random_index]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment