Project Level 1: Beginner
This project is designed for beginner learners who are still learning and practicing Python fundamentals.
Project Description
Your task for today is to create a Python program which generates a new text file every time you run it.
How the Project Works
When you run the program, it should generate a new text file. The program assigns a random name of 10 characters to the text file and also writes that random text inside the text file as content.
Here is an example of the file generated when the program is executed:
Any time the program is executed, a new file with a different
Prerequisites
Required Libraries: string, random
Required Files: No files are required.
IDE: You can use any IDE on your computer to code the project.
Danger Zone
Get help by obtaining the code that generates a random string below:
Once you code the project, compare it with our solution below which shows how to generate files named after random names: