View This Site In Your Own Language

What is python




[N.B: Please, don’t be worry if you don’t understand anything of this chapter. We will discuss everything gradually in this book]

v  Feature of Python:

Ø  An interpreted, interactive, object-oriented programming language
Ø  Supports object oriented programming, structured programming and also functional programming
Ø  Incorporates:
·         Modules
·         Exceptions
·         dynamic typing
·         very high level dynamic data types
·         classes
Ø  Very clear syntax
Ø   Interfaces to many system calls and libraries
Ø  Extensible in C or C++
Ø  Open source
Ø  Very stable
Ø  Compatible with Major Platforms and Systems
Ø  Robust standard library
Ø  Helps to access database easily

v  Why the name Python:
Guido van Rossum is the author of the python programming language. He was thinking about a short, unique and mysterious name for his language. In that time he was also reading a BBC comedy series named “Monty Python’s Flying Circus”. So, he decided to call his language as python.

v  Application of Python:

Ø  Web and Internet Development
Ø  Scientific and Numeric computing
Ø  Software development
Ø  Used to build ERP and e-commerce system
Ø  Artificial intelligence
Ø  Game development
Ø  Desktop application
Ø  Web crawling
Ø  GUI application etc.

v  Variable declaration:

 #  variable declaration

 variable_name = value
v  How to take input:

# How to take input

variable_name = input() # variable_name is str type

v  How to show output:

# How to show output

print('what you want to show as output')

v  Syntax of Conditional statement:
# Conditional Statement

if condition:
   
# put your statement here
elif condition: # if you have multiple conditions then use elif
    # put your statement here
# you can use more elif condition as your need
else:
   
# put your statement here

v  Syntax of Loop statement:

Ø  for Loop:
# for Loop Statement
for iteration in variable:

    # put your statement here

 Ø  while Loop:
# while Loop Statement
while condition:

    # put your statement here
 

v  Function statement:
# function statement
def function_name(parameters):

    # put your statement here

    return result

v  Lambda function:
# lambda statement
output = lambda input1,input2,input3: # put your statement here

What is python What is python Reviewed by Ikram on 10/11/2019 12:00:00 AM Rating: 5

No comments:

Powered by Blogger.