Posts

Showing posts from September, 2020

Python 2 vs. Python 3

* Difference between python 2 vs python 3 In most of the programming languages, whenever a new version releases, it supports the features and syntax of the existing version of the language, therefore, it is easier for the projects to switch in the newer version. However, in the case of Python, the two versions Python 2 and Python 3 are very much different from each other. A list of differences between Python 2 and Python 3 are given below: 1.Python 2 uses  print  as a statement and used as print "something" to print some string on the console. On the other hand, Python 3 uses  print  as a function and used as print("something") to print something on the console. 2.Python 2 uses the function raw_input() to accept the user's input. It returns the string representing the value, which is typed by the user. To convert it into the integer, we need to use the int() function in Python. On the other hand, Python 3 uses input() function which automatically interpreted the...

Python introduction

*   What is python . Python   is a general purpose, dynamic,  high-level , and interpreted programming language. It supports Object Oriented programming approach to develop applications. It is simple and easy to learn and provides lots of high-level data structures. Python is  easy to learn  yet powerful and versatile scripting language, which makes it attractive for Application Development. Python's syntax and  dynamic typing  with its interpreted nature make it an ideal language for scripting and rapid application development. Python supports  multiple programming pattern , including object-oriented, imperative, and functional or procedural programming styles. Python is not intended to work in a particular area, such as web programming. That is why it is known as  multipurpose  programming language because it can be used with web, enterprise, 3D CAD, etc. We don't need to use data types to declare variable because it is  dyna...