SuhruthY / Python21

A collection of 21 python projects in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First Fifty

    First Fifty is a collection of python projects ranging all levels of experience in python. We will be working with search algorithms, simulations, text searching and parsing, mini-games, full length games, frameworks, etc in this set of projects. I fell as a beginner project-based learning provided you with much more knowledge about real-world environment. You will have a greater scope to experiment with the techniques and come up with new ideas.

    Here in this page I'm going to explain about what each and every project is about, it's boundaries, scopes and how can you change it, and provide some references for further study.

Easy Bundle

    The Easy Bundle is a set of simple python mini-projects which uses basic python fundamentals. It comprises of projects like

    Binary search looks for a particular item by comparing the middle most item of the collection. If a match occurs, then the index of item is returned. If the middle item is greater than the item, then the item is searched in the sub-array to the left of the middle item. Otherwise, the item is searched for in the sub-array to the right of the middle item. This process continues on the sub-array as well until the size of the subarray reduces to zero.

 
For this algorithm to work properly, the data collection should be in the sorted form.

    As the name suggests, we will be simulating a rolling dice. This is one of the interesting python projects and will generate a random number each dice the program runs, and the users can use the dice repeatedly for as long as he wants. When the user rolls the dice, the program will generate a random number between 1 and 6 (as on a standard dice).

 
I used the command line to simulate the dice but you can go a step further creating a simple GUI.

    For a given input a year you neeed to check whether it is a leap year or not. For this, you’ll have to create a function that recognizes the pattern of leap years and can try fitting the inputted year into the pattern. In the end, you can print the result using a boolean expression.
 
The thing that is challengng here is to making sure the user enters only years(4-digit integer)

    For a given input a number and the function created checks whether the number belongs to the Fibonacci sequence or not. The underlying program works are similar to the above ‘Leap it!’ program.

    The desktop notifier apps run on your system and send you a piece of information after a fixed interval of time. I suggest you to use libraries such as notify2, requests, etc. to build such a program.
 
I personally used the ToastNotifier class from the python win10toast library to finish this project.

    The computer will generate a random number between 1 and 100 and the user needs to guess it. If the guess is wrong then you will be provided with a clue saying the number you guessed is greater or lesser than the original number.   You can use the random module in python to complete this project.

    The a 5-minute stint of rock, paper, scissors with the computer and designed by you, yourself will improve your mood.

 
We again use the random function here. You make a move first and then the program makes one. To indicate the move, you can either use a single alphabet or input an entire string. A function will have to be set up to check the validity of the move.

 
Using another function, the winner of that round is decided. You can then either give an option of playing again or decide a pre-determined number of moves in advance. A scorekeeping function will also have to be created which will return the winner at the end.

    The players create a 3×3 square grid.While the first player puts “X” in any one of the squares, and the second player will put an “O” in any square. This process will continue until all the squares are filled with each player putting X and O alternatively. The player who succeeds in creating a horizontal, vertical, or diagonal with three consecutive X or O on the grid wins.
 
I refer the TicTacToe by clever programmer to create the complete project. All it require is to build various python functions and hence it used the terminal to run the game.
 
You can go further one step and make a simple GUI using the Tkinter library.

    Madlibs is a phrasal template word game which consists of one player prompting others for a list of words to substitute for blanks in a story before reading aloud.

  • This was my first project after watching some beginner python videos. Hence I didn't got that deep into it.
  • I just created a simple madlib which will generate a sentence using the input words.

    Email Slicer is nothing but just a tool which will take an email id as an input and will perform slicing operations on it to return the username and the domain of the email id.

 

                              previous page                                                                                         next page
                             

About

A collection of 21 python projects in python


Languages

Language:Python 53.5%Language:Jupyter Notebook 28.7%Language:HTML 17.5%Language:Shell 0.3%