Python Language Skill UP
  • Twitter
  • Facebook
  • Snapchat
  • Instagram

What is Python?

Python: is a widely used general-purpose, high level programming language. It was created by Guido van Rossum in 1991 and further developed by the Python Software Foundation. Python is also known as scripting language. Python syntax allows programmers to express their concepts in fewer lines of code.

Scripting Language: A script or scripting language is a computer language that does not need the compilation step and is rather interpreted one by one at runtime. To execute or run python script we need interpreter. As compared to programming languages that are compiled first before running, scripting languages do not compile the file and execute the file without being compiled. For compiling programming languages needs Compiler. Scripting languages can be used on server as well as client side. Most popular scripting languages are -> Python ,PHP,javascript,ruby,R etc

Interpreter:In computer science, an interpreter is a computer program that directly executes instructions written in a programming or scripting language, without requiring them previously to have been compiled into a machine language program.

Compiler: A compiler is a special program that translates a programming language's source code into machine code, bytecode or another programming language.

Beginning with Python programming:

1. Finding an Interpreter: To Execute or run Python script ,we need to have an interpreter to interpret and run our python script. There are certain online interpreters that can be used to run Python programs without installing it.
Different interpreters are available for different platform.
windows: There are many interpreters available freely to run Python scripts for e.g Python IDLE (Integrated Development Environment) that comes bundled with the Python software,can be downloaded from http://python.org/.
Linux: Python comes preinstalled with popular Linux distros such as Ubuntu and Fedora. To check which version of Python you’re running, type “python” in the terminal emulator. The interpreter should start and print the version number.
macOS: Generally, Python 2.7 comes bundled with macOS.
You’ll can manually install Python Moduleshttp://python.org/3/.

2.Python first program:

Start interpreter and type in the following code .

# Beginning of Script

print("Wellcome To Python")

# end of Script
Output:
Wellcome to Python
Let’s understand the script line by line
Line 1: # Beginning of Script     => this is comment in python, comments are used for documentation purpose or description about the script.In Python, comments begin with a #. This statement is ignored by the interpreter.

Line 2: print(“Wellome to python”)     => To print something on the console, print() function is used. This function also print a newline after the message is printed. print(“”): is function python used to show message on Console. It is Function in Python 3. Version but in Python 2 it was simply the Keyword not function, so we had to use print without parentheses ().

However, in Python 3, it is a function and must be invoked with parentheses.
Line 3: #end of Script    =>This is just another comment. This is used to Documentation purpose like line no 1.

Python

  • Home
  • History of Python
  • Applications of Python
  • Introduction To Python
    • What is Python.
    • Character Set
    • Tokens in Python
    • Python Execution Mode
    • Variable And Identifiers
    • Data Types in Python
    • Operators And Expressions
    • Constants in Python
    • Assignment Statement
    • Input / Output in Python
    • Simple 'Python' Scripts
    • Namespace in 'Python'
    • Assignments
  • Operators in Python
    • Arithmetic Operators
    • Assignment Operators
    • Shorthand Assignment Operators
    • Relational Operators
    • Logical Operators
    • Bitwise Operators
    • Special Operators
    • Assignments
  • Input Output in Python
    • Accept Input
    • Output Formating
  • Conditional Statement
    • Decision Making
    • if Statement
    • IF-ELSE STATEMENT
    • IF-ELSE LADDER
    • NESTED IF-ELSE
    • short hand IF-ELSE
    • Assignments
  • Loops
    • Introduction to Loops
    • While Loop
    • Nested While Loop
    • while loop assignments
    • for Loop
    • For loop examples
    • Nested for loop
    • Nested for loop examples
    • Infinite while Loops
    • Infinite for Loops
    • break,continue and else in Loops
    • Difference between for and while loop
    • for each loop
    • for each Assignments
  • List
    • List in Python
    • Access List elements
    • List functions
    • Iterate(loop)List
    • List comprehension
    • List Assignments
  • Tuple
    • Tuple in Python
    • Access tuple elements
    • tuple functions
    • Iterate(loop)tuple
    • Unpack Tuple
    • tuple comprehension
    • tuple Assignments
  • set
    • Set in Python
    • Access set elements
    • set Methods
    • Iterate(loop)set
    • Pack/Unpack Tuple
    • tuple comprehension
    • set Assignments
    • Set comprehension
  • Dictionary
    • Dictionary
    • Access dictionary Items
    • dictionary method
    • Iterate(loop)Dictionary
    • formating Dictionaries
    • Nested Dictionaries
    • dictionary comprehension
    • dictionary Assignments
  • Diff list tuple set dictionary
    • list vs tuple
    • list vs set
    • list vs dictionary
    • tuple vs set
    • tuple vs dictionary
    • dictionary vs set
  • Exception
    • Error vs Exception
    • Exception Handling
    • Types of Exception
    • User Defined Exception
    • Logging Exception
    • assignments
  • Functions
    • Introduction
    • Modular Programming
    • Type of functions
    • Inbuilt Function
    • Need For User-Defined Function
    • Elements Of User Defined Function
    • Function Argument
    • Nesting of Function
    • Recursion
    • Global Local and Non Local
    • Python Lambda Functions
    • Assignments
  • Python Module
    • introduction to module
    • Inbuilt Module in Python
    • User Defined Module in Python
    • Assignments
  • File Handling
    • Introduction to files
    • Create File
    • Read files
    • Write to File
    • Rename File
    • Copy File
    • Move file
    • List files in Directory
    • Binary files
    • Zipping and unzipping files
    • Assignments
  • Strings
    • Basics of Strings
    • String Special Operator
    • String Formatting operator
    • String methods
  • Regular Expressions
  • Python OOPS
    • Basics of Object Oriented
    • What are Classes and Objects?
    • Creating Class and Object
    • Diff object oriented and procedural oriented programming
    • difference between classes and object
    • Constructors
    • destructor
    • built class methods and attributes
    • class and instance variable
    • Inheritance in Python
    • Single Inheritance
    • Multiple Inheritance
    • Multilevel inheritance
    • Hierarchical Inheritance
    • Hybrid Inheritance
    • Abstraction
    • Method Overriding
    • Abstract Method
    • Interfaces in python
    • Abstract class vs interface
    • Public in python
    • Private in python
    • Protected in python
    • Overloading Vs Overriding
    • inheritance vs composition
    • Encapsulation
    • Polymorphism
    • inner classes
    • Opps Assignments
  • Mysql database in python
    • introduction
    • DBMS vs file
    • connecting to database
  • Mysql database Operation
    • Select
    • Operators
    • DDL
    • DML
    • subqueries
    • joins
    • Case study
  • Graphics
  • Iterator in python
  • Generator in python
  • decorator in python
  • Threads in Python
    • introduction
    • process and threads
    • concurrent programming and GIL
    • Uses of threads
    • creating Threads
    • Single tasking
    • multi tasking
    • thread synchronization
  • Frequently Asked Interview Questions (FAQ)
  • Case Studies
  • Multiple Choice Questions

Get in touch

  • tech2dsm@gmail.com

© tech2dsm. All rights reserved.