Skip to main content

Introduction of python

What is Python?

Python is a popular programming language. This language was created by Guido van Rossum  in 1991 and further developed by the Python Software Foundation. As you know it is work quickly and integrate systems more efficiently.

 






It is manly used for:

1.                  web development (server-side), 

2.                  software development,

3.                  mathematics and data analytics

4.                  system scripting etc.

What can Python do?

  • It can be used on a server to create web applications.
  • It can also used alongside software to create workflows and connect to database systems.
  • It can also read and modify files and handle big data and perform complex mathematics etc.

Why Python?

  • It works on different platforms likes (Windows, Mac, Linux, Raspberry Pi, etc).
  • It can be runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
  • It can also be treated in a procedural way, an object-oriented way or a functional way.

Python Syntax Compared to other programming languages

  • Python was designed for readability, and has some similarities to the English language with influence from mathematics.
  • Python uses new lines to complete a command, as opposed to other programming languages which often use semicolons or parentheses.
  • Python relies on indentation, using whitespace, to define scope; such as the scope of loops, functions and classes. Other programming languages often use curly-brackets for this purpose. 

 

Example –

print("Hello, World!")

 

 

 


Comments

Popular posts from this blog

Django in Python

What is Django? Django is a free and open source web application framework written in Python that encourages rapid development and clean pragmatic design. As you know  A framework is nothing more than a collection of modules that  make development easier. They are grouped together, and allow you to create applications or websites from an existing source, instead of from scratch. Some well known sites that use Django include PBS, Instagram, Disqus, Washington Times, Bitbucket and Mozilla. Django offers a big collection of modules which you can use in your own projects. Primarily, frameworks exist to save developers a lot of wasted time and headaches and Django is no different.

Python program to make simple calculator

Python program to make simple calculator In this example you will learn to create a simple calculator that can add,subtract,multiply or divide depending upon the input from the user. Example: simple calculator by using functions. def   add ( num1 , num2 ):    return  num1+num2   def   subtract  ( num1 , num2 ):    return  num1-num2   def   multiply  ( num1 , num2 ):    return  num1*num2   def   divide  ( num1 , num2 ):    return  num1/num2   print ( "please enter your choice :\n" \          "2.subtract\n" \        "3.multiply\n" \        "4.divide\n" )   ch=int( input ( "please enter your choice :" )) num1 = int( input ( "Enter the first number:" ))   if  ch== 1 :    print (num1+num2) elif ...