Innovative Projects to Boost Your Coding Skills in Python
Write a program that generates a random number between 1 and 100 and asks the user to guess it. Provide feedback on whether the guess was too high or too low, and give the user a limited number of tries.
Create a Mad Libs game that asks the user for different parts of speech (e.g. noun, verb, adjective) and then creates a funny story using those words.
Create a simple command-line tic-tac-toe game where two players can take turns placing X’s and O’s on a 3x3 grid.
Build a simple game of Hangman where the player tries to guess a hidden word by suggesting letters one at a time. Keep track of the number of guesses the player has left and provide feedback on incorrect guesses.
Build a program that can scrape information from a website (e.g. news articles, weather data) and store it in a CSV file or a database.
Create a program that generates a random password using letters, numbers, and special characters. Allow the user to specify the length and complexity of the password.
Write a program that can solve a Sudoku puzzle using backtracking. You can either input the puzzle as a string or read it from a file.
Create a text-based adventure game where the player navigates through different rooms and interacts with objects to solve puzzles and progress through the game.
Use a data visualization library like Matplotlib or Seaborn to create a visual representation of data (e.g. a histogram, scatterplot, or bar chart). You can use publicly available data or generate your own.
Build a simple weather app that retrieves the current weather data for a user-specified location using an API and displays it on the screen.
Create a program that allows the user to add, edit, and delete items from a to-do list. You can store the to-do list in a file or a database.
Build a program that allows the user to navigate through the files and folders on their computer, create and delete folders, and move and copy files.
Write a program that can resize and compress images. Allow the user to specify the output size and quality of the image.
Create a simple version of the classic Snake game where the player controls a snake that grows longer as it eats food.
Build a program that can play and manage music files. Allow the user to create playlists and shuffle and repeat tracks.
Write a program that retrieves the current stock price for a user-specified company using an API and displays it on the screen.
Create a program that calculates a person’s Body Mass Index (BMI) based on their height and weight. Provide feedback on whether the person is underweight, normal weight, overweight, or obese.
Build a program that counts the number of words, characters, and lines in a text file. Allow the user to specify the input file and output file.
Encryption and Decryption Tool:
Write a program that can encrypt and decrypt messages using a simple encryption algorithm. Allow the user to specify the encryption key and the message to be encrypted or decrypted.
Originally published at https://www.epythonguru.com.