Interview Questions on Python
Python is an open source easy to learn and object oriented language .Python may be used for Data Science , E commerce Applications , Desktop Applications and automation etc. Python has a lot of inbuilt library which makes easy to code.
List is orderd and changable in nature so we can append or delte the items from the list
Tuple is also ordered but its not changable in nature. so neither we can append new elements nor we can remove element
Set is unordered collection so elements are grouped in random order
Each python program file which contains class functions and other code is named as module.
Python File may import the modules . numpy for mathematical calculations and mysql connector to connect python with mysql database is imported
List and array both are collection elements in python and used to store multiple values
But array can store values of same type while list may store different type of values as well.