Installing Manim on windows.

Python - Introduction

Hello, I am Naveen.
I am going to start a series to learn python.
Python picture




What is Python?

         Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python's design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.

          Python was conceived in the late 1980s as a successor to the ABC language. Python 2.0, released 2000, introduced features like list comprehensions and a garbage collection system capable of collecting reference cycles. Python 3.0, released 2008, was a major revision of the language that is not completely backwards-compatible, and much Python 2 code does not run unmodified on Python 3. Due to concern about the amount of code written for Python 2, support for Python 2.7 (the last release in the 2.x series) was extended to 2020. Language developer Guido van Rossum shouldered sole responsibility for the project until July 2018 but now shares his leadership as a member of a five-person steering council.

Source Wikipedia.

Pluses of Python

  1. Easy to use OO language
  2. Expressive language
  3. Interpreted language
  4. It's completeness
  5. Cross-platform language
  6. Free and open source
  7. Variety of usage or application


Disadvantages of Python

  1. Not the fastest language
  2. Having fewer libraries
  3. Not strong on type binding
  4. Not easily convertible


Python is an interpreted language that is all the commands you write are interpreted and executed one by one.
Python for beginners

Working in Python

  •  The default installation is  available from "www.python.org" and is called "CPython installation"
    Python Latest Version 3.7.3


  • Anaconda Python distribution is one such highly recommended distribution with many libraries.
    Anaconda Python Features
    Anaconda Python
  • There are also Other IDE which is available

Here,  we would use spyder IDE in Anaconda python.
Spyder Python workspace
Spyder IDE


We can work by two types in Python.


Interactive mode

      Interactive mode means in we type one command the Python execute shell command there and gives output.

Python  Interactive mode


Script mode

      Script mode executes all the command and can get all output lines together.

Script Mode Python




Shortcuts (basic)

F5 | Run  ( Only in Script Mode.)

Default saving extension for python is ".py".

Note

 Python saves only in script mode.
Python


Check out this cheat sheet made by Kevin
http://r.syrusdark.website/python-cs

Comments

This Blog is protected by DMCA.com