Introduction
Learning a new programming language is both exciting and humbling. Especially when it’s a language having as varied use cases as python. So, if you’re on your way to learning python, it’s crucial for you to try your hands on some Python mini projects. For a fresher, it makes sense to try out some mini projects before you get your hands really dirty. So, here’s a list of five mini-projects for you to improve your Python skills:
Also see, reverse a string in python
1. Mad Libs Generator
This project is inspired by Summer Son’s Mad Libs project based on JavaScript. The program first prompts a user for a series of inputs a la Mad Libs. For example, an adjective, a collective noun, etc. Then, when all the information has been inputted, the program takes that data and places them into a story template.
For this, you’ll need to learn how to use prompts for the user input, and print the full story at the end with all the inputs included. This requires a command on the following concepts:
Strings
Concatenation
Variables
This one’s a pretty fun project that teaches you how to manipulate user-inputted data. As opposed to the prior projects, this is focused more on strings and their concatenations. See what crazy stories you can come up with!
2. Hangman
The actual “hangman” part isn’t really necessary. The main goal here is to create a “guess the word” kind of a game. The user will input letter guesses, you’ll need to limit the number of guesses a user can make.
This means, you’ll randomly grab a word to use for guessing – this can be done from a pre-made list. Then, you’ll need functions to see if the user has entered a singler letter and if that letter is a part of that word. And if it is, then how many times does it appear in the word.
For this, you’ll require the following concepts:
Random
Variables
Boolean
Input and Output
Integer
Char
String
Length




