Introduction to Python - easy4tuts.blogspot.com

Hot Contents To Know

Post Top Ad

Your Ad Spot

Introduction to Python

 

what is Python?

Python is a multipurpose, interpreted, Object Oriented and high-level programming language. It was developed by Guido van Roussum and realeased in 1991.

It is used for:

  • web development (server-side),
  • software development,
  • mathematics,
  • database management,
  • data science,
  • machine learning,
  • network monitoring,
  • game development,
  • Python work on different plateform (like Windows,Mac, Linux etc,)
  • system scripting.

What can Python do?

  • Python can be used on a server to create web applications.
  • Python can be used alongside software to create workflows.
  • Python can connect to database systems. It can also read and modify files.
  • Python can be used to handle big data and perform complex mathematics.
  • Python can be used for rapid prototyping, or for production-ready software development.

Why Python?

  • Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
  • Python has a simple syntax similar to the English language.
  • Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
  • Python 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.
  • Python can be treated in a procedural way, an object-oriented way or a functional way.

Good to know

  • The most recent major version of Python is Python 3, which we shall be using in this tutorial. However, Python 2, although not being updated with anything other than security updates, is still quite popular.
  • In this tutorial Python will be written in a text editor. It is possible to write Python in an Integrated Development Environment, such as Thonny, Pycharm, Netbeans, VS Code, Eclipse or Python default IDLE which are particularly useful when managing larger collections of Python files.

Note:- To run Python in VS Code, We have to install  an extension  called  “code runner”  and “Python” in VS Code. We can run our programme in python IDLES. To run program in python IDLE, Open the IDLE, And write the code on python shell

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 (or block of statement); such as the scope of loops, functions and classes. Other programming languages often use curly-brackets for this purpose.

Running Python Programs

    We can run our python program either using different IDES or python default IDES. To write code in Python default IDLE, open the IDLE and write the code on command prompt




Exampl

print("Hello, World!")

No comments:

Post a Comment

Post Top Ad

Your Ad Spot