Posts

Showing posts from September, 2020

Code Comparison with other languages

  Code Comparison with other languages: JAVA: public class student { public static void main(String args[]) { System.out.println("Hello Java") } } C: #include<Stdio.h> void main() { print("Hello C") } Python : print("Hello Python")

Python features form other Programming Languages

Python features form other Programming Languages: Functional programming from C Object-Oriented Programming Languages from c++ Scripting Languages from Perl and Shell Scripting Modular Programming from module-3 Most of the syntax in python Derived from C and ABC language.

Where we can use Python?

Where we can use Python? Desktop Application Web Application Database Application Networking Application Ai/ML/Data Science Game development Scripting Automation

Companies using python

  Companies using python: Google and Youtube using Python Coding NASA and Networking Stock Exchange Application developed by Python Microsoft, Intel, IBM, Yahoo

Limitation of python

Limitations of Python: Performance-wise not up to the mark (Because of Python is interpreted languages) Not usable for  Mobile Application Development

Versions of Python

Versions of Python: Python 1.0 v ==>> 1994 Python 2.0 v ==>> 2000 Python 3.0 v ==>> December 2008 Note-  Python 3 won't provide backward compatibility to Python 2 Current version of Python 3 ==>> Date: 22-08-2020 3.8.5 Current version of Python 2 ==>> Date: 22-08-2020 2.7

Flavors of Python

Flavors of Python CPython Jython IronPython ==>> c# or .net pypy ==>> JIT compiler(to increase the performance) ruby python anaconda python==>> datascience

Python Identifiers

 A name in python program is called python identifiers Eg : a=10 The identifiers only allowed character in python are : alphabet symbols(lower and upper) digit (0 to 9) underscore symboll(_) Identifer should not start with digits identifiers are case sensitive We cant use reserved word as identifiers There is no lenght limit for python identifiers but not recommended to use too lenghty identifer Dollor symbol is blocked or not allowed in python Examples:- 123a ==>> worng identifier total123 javatest ca$sh ==>> worng identifier _abc_def ==>> private variable(always start with undersocpe) def ==>> worng if ==>> worng __test ==>> (strongly Private variable) __add__ ==>> (Magic Method)

Features of python

Simple and Easy to learn Open Source Platform Independent Hug library  Portability  OOPS Dynamic typed Extensible GUI Embedded

Python Keyword

  Keywords: [35 keywords] False None True and as assert async await break class continue def' del elif else except finally for from global if import in is lambda nonlocal not or pass raise return try while with yield How to get Python Keywords? import keyword print( keyword.kwlist )

History of Python

What is Python? Python is a High-Level Programming Language and easy to read and simply to implement. Who is developed python? Python is developed by Guido van Rossum in 1989(start working) when actual work is started on python? On Feb 20, 1991,  the actual working start on. Created for Beginners or Students (simple) When python is devloped? In 1991, Python is developed by Guido van Rossam.