This repository contains some basic and important python programs which i learnt on the journey of learning python.
- Create a Class and Objects
- Overload a Function
- Implement a Menu Driven Calculator
- Perform Simple Stack Operations
- Swap Two Numbers without a Third Variable
- Check if a Year is a Leap Year
- Grasp Built-in Methods of List Data Structure
- Find the Second Largest number in a List
- Print the Largest Even and Largest Odd Number in a List
- Generate Random Numbers
- Grasp Built-in Methods of Dictionary Data Structure
Check out : ObjectCreation.py
Not surprisingly, all of us know how important role the classes and objects play in the programming language sphere.
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.
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.
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.
Check out : SwappingTwoNumbers.py
Well, swapping of two numbers can't get anymore easier with the Simultaneous assignments in Python 3.
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.
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.
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.
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.
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!!
Check out : DictionaryMethods.py
This PythonCode takes you through the basic dictionary methods NOTE : Comments are not to be ignored in this code.