Skip to content

somrajchowdhury/PythonCodes

Repository files navigation

PythonCodes

The little collection of python programs. Built with ❤︎ by Somraj Chowdhury
👦

This repository contains some basic and important python programs which i learnt on the journey of learning python.

Program to

Class and Object Creation

Check out : ObjectCreation.py

Not surprisingly, all of us know how important role the classes and objects play in the programming language sphere.

Code Output :
Object Creation

(Back to top)

Function Overloading

Check out : FunctionOverloading.py

Some of my friends and books said function overloading isn't that popular in python, well this program might just serve the purpose.

Code Output :
Function Overloading

(Back to top)

Menu Driven Calculator

Check out : SimpleMenuDrivenCalculator.py

This calculator will not stop taking inputs even if you are tired. But you can comment the while(True) statement and give the calculator some rest.

Code Output :
Menu Driven Calculator

(Back to top)

Stack Operations

Check out : StackOperations.py

If you are new to the family of Data Structures, then firstly you should introduce yourself to Mr. Stack. He is simple and easy.

Code Output :
Stack Operations

(Back to top)

Swap Two Numbers Without a Third Variable

Check out : SwappingTwoNumbers.py

Well, swapping of two numbers can't get anymore easier with the Simultaneous assignments in Python 3.

Code Output :
Swaping Two Numbers

(Back to top)

Look out for a Leap Year

Check out : LeapYear.py

Still have a confusion on how many days a Leap Year has? Well, i won't say it, run the code and get all the answers you need about leap year and a normal year.

Code Output :
Leap Year

(Back to top)

BuiltIn Methods of List Data Structure

Check out : ListMethods.py

This PythonCode is the one stop shop for all the beginners and intermediates who would like to brush-up the List methods in Python 3. NOTE : Comments are not to be ignored in this code.

Code Output :
List Methods

(Back to top)

Second Largest Number in a List

Check out : SecondLargestNumber.py

For years, the Most Wanted number was the Largest number, this time the Second Largest number is the Criminal. Let us find and print him out.

Code Output :
Second Largest Number

(Back to top)

Largest Even and Largest Odd Number in a List

Check out : LargestEven&OddNumber.py

As per news reports from pythoNEWSTv, the Most Wanted number was the Largest number again. Reports clearly mention their names as Mr.Largest ODD and Mr.Largest EVEN. Let us get our hands dirty.

Code Output :
Larget Even and Odd Number

(Back to top)

Random Number Generation

Check out : GenerateRandomNumbers.py

You love to see when random numbers pop-up on the screen, don't you! The output is always different, so run the code yourself and try to guess the output. It'll be real fun!!

Code Output :
Random Numbers

(Back to top)

BuiltIn Methods of Dictionary Data Structure

Check out : DictionaryMethods.py

This PythonCode takes you through the basic dictionary methods NOTE : Comments are not to be ignored in this code.

Code Output :
Dictionary Methods

(Back to top)

About

Basic, Simple & Easy to understand Python 3 programs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages