This is collection of basic Python Programs.
**BEWARE**: This is a work in progress.
* Code here may change and disappear without warning.
-
First install Python 3+ on your machin according to steps for respective OS given Here.
-
Fork this repository.
-
Now you will have folder
python-basic-examples
. -
Navigate to this folder in terminal.
-
To run the each individual program use
python {{file_name}}.py
.Note : This all programs are done by focusing on python3+ versions. You may face some issues while running this programes on python2.
- Basic String Declaration and Usage
- Indexing and Slicing of String
- Take Input from User
- String Formating
- String Methods and Properties
- Declaration and Defination, Passing parameters and Returning value
- Nested Functions and Variable Scopes
- Sending args and kwargs to functions
- Basic OOP
- Init Method
- Built in Class Attributes
- Class and Object
- Encapsulation
- Methods inside Class
- Inheritance
- Polymorphism