Python is an easy to learn, multi-purpose programming language with simple syntax. It supports both functional and object-oriented programming concepts. Python comes prepackaged with many useful modules and allows writing code with short length through third party modules. It is also platform independent. The document then discusses Python versions, installation process on Linux, code indentation standards, commenting styles, and escape characters in Python.
Python is an easy to learn, multi-purpose programming language with simple syntax. It supports both functional and object-oriented programming concepts. Python comes prepackaged with many useful modules and allows writing code with short length through third party modules. It is also platform independent. The document then discusses Python versions, installation process on Linux, code indentation standards, commenting styles, and escape characters in Python.
Python is an easy to learn, multi-purpose programming language with simple syntax. It supports both functional and object-oriented programming concepts. Python comes prepackaged with many useful modules and allows writing code with short length through third party modules. It is also platform independent. The document then discusses Python versions, installation process on Linux, code indentation standards, commenting styles, and escape characters in Python.
• Python is easy to learn because of its simple Syntaxes. • Many modules (pre-defined and third party) • Code length is very short because of third party modules. • Platform Independent. • Supports both functional and oops concept. python • Is powerful multi-purpose programming language created by Guido and Rossum. • Python versions • 2.x • 3.x • Python install • Python --version • Pip –version(require 3rd party modules install) Python Install Linux
• Sudo yum install wget
• Wget https://www.python.org/ftp/python/3.7.0/Pyt hon-3.7.0.tgz • tar –xvzf Python-3.7.0.tgz • Yum install gcc openssl-devel bzip2-devel libffi- devel • ./configure,Make,make altinstall Indentation • Indent space • Indentations are used to represent block of code. • The amount of indentation is up to you, but it Consistent throughout the block. • Don’t include the indent unnecessarily. Python comments • Single line - # • Multi line – ‘’’ or “”” from start, at end. """ Author: pradeep date: Dec01,2021 version:1.0.0 ""“ # adding program Escap/special charcter • \n – New line • \b – backspace • \t – tab • \ - escape symbol • Windows path – C:\\pradeep\\