Project Level 1: Beginner
This project is designed for beginner learners who are still learning and practicing Python fundamentals.
Project Description
Create a program that reads a list of names from a text file, randomly picks one, and displays it. It's perfect for practicing file handling and working with lists in Python.
Download the text file from this link. The text file contains 4945 person names. Here is a snapshot of the text file:
Learning Benefits
This project is about reading text from files, processing text data, and applying the random.choice()
function on lists, all while building a program that’s both useful and easy to expand.
Prerequisites
Required Libraries: random
You don’t need to install any libraries since random is a standard library.
Required Files: Download the text file in this link.
IDE: You can use any IDE on your computer to code the project.
Danger Zone
Once you code the project, compare it with our two solutions given in the button below.