Python for Beginners pdf free download, dummies, commands, examples, NumPy, SciPy, Data Science, Analytics, Data Engineers, BIG Data

Python Interview Questions and Answers - INDEX


What are the differences between Python 2.x vs Python 3.x (2.7 vs 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9), when to you which version ?


What is Python Variable, Expression and Statement ?


What is a 'Reserved Word' in Python ? List of Reserved words in Python ?

What are the differences between Python 2.x vs Python 3.x (2.7 vs 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9), when to you which version ?

The final 2.x version is 2.7 released in the middle of 2010. Python 3.x latest version is 3.6.4 when writing this article. Python 3.3 released in 2012, 3.4 in 2014, 3.5 in 2015 and 3.6 in 2016.

The following are some of the key differences between Python 2.x and Python 3.x:

• strings are Unicode by default
• clean Unicode/bytes separation
• exception chaining
• function annotations
• syntax for keyword-only arguments
• extended tuple unpacking
• non-local variable declarations

... Click here for full details.

What is a variable in Python ?

It is a place where we can store values. Instead of using the values directly, we can refer the variable name where the actual values are stored.

Example
> x = 2 === > here X is a Variable
> name = 'John' === > here NAME is variable


Click here for full answer...


What is a Reserved Word in Python ?

It is a word with special meaning for Python. In other words, when used these special words, Python performs certain function (or) action. We can not use reserved words as Variable names.

Example
'and' ... 'or' === > reserved words, these are used for comparison needs in the program logic


Click here for full answer...