Skip to content

This repo have the basic programs of python basic concepts

Notifications You must be signed in to change notification settings

aasimali/python-basic-examples

 
 

Repository files navigation

Python Basic Programs

Python

This is collection of basic Python Programs.

**BEWARE**: This is a work in progress.
* Code here may change and disappear without warning. 

How to use code

  1. First install Python 3+ on your machin according to steps for respective OS given Here.

  2. Fork this repository.

  3. Now you will have folder python-basic-examples.

  4. Navigate to this folder in terminal.

  5. 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.

00. Variables Declaration and Usage
  1. Hello World In Python
  2. Basic Variable Declaration
  3. Dynamic Typing and Printing output
  4. Concat Strings
01. Python Objects and Data Types
  1. Numbers
  2. Integer
  3. Float
02. Strings
  1. Basic String Declaration and Usage
  2. Indexing and Slicing of String
  3. Take Input from User
  4. String Formating
  5. String Methods and Properties
03. Operators
  1. Arithmatic Operators
  2. Special Operators
04. List
  1. List Declaration and Method usage
05. Tuple
  1. Tuple Declaration and Method usage
06. Sets
  1. Sets Declaration and methods usage
07. Dictionaries
  1. Declaration and Method Usage
08. File Handling
  1. Basic File Handling
09. Comparision Operators
  1. Chaining of Comparision Operators
10. Statments
  1. If
  2. elif
  3. else
  4. shorthandifelse
  5. Loops
11. Function
  1. Declaration and Defination, Passing parameters and Returning value
  2. Nested Functions and Variable Scopes
  3. Sending args and kwargs to functions
Assignment 1: Pig Latin
12. OOP Concepts
  1. Basic OOP
  2. Init Method
  3. Built in Class Attributes
  4. Class and Object
  5. Encapsulation
  6. Methods inside Class
  7. Inheritance
  8. Polymorphism
Assignement 2 : Employee Management Assignment using All Above concepts
13. MySql with Python
  1. Check MySql Connector working or not
  2. Create Connection
  3. Create Database
  4. Check DB Exist or Not
  5. Connect to DB and Create Table
  6. Inset Record
  7. Select Record
14. Flask In Python
  1. Hello World using Flask
  2. Variable Rule
  3. Url Binding

About

This repo have the basic programs of python basic concepts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%