Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 647 Bytes

README.md

File metadata and controls

12 lines (11 loc) · 647 Bytes

Python_Games

Practicing some of the skills learned in the Python for Beginners tutorial on YouTube. I'd like to give these games a nice/functional user interface, so if you know how to build GUIs using Python, feel free to give it a shot and share your skills and ideas 😇

How to use random.choice() function to randomly select things from a list

import random

movie_list = ['The Godfather', 'The Wizard of Oz', 'Citizen Kane', 'The Shawshank Redemption', 'Pulp Fiction']

moview_item = random.choice(movie_list)

print ("Randomly selected item from list is - ", moview_item)