Pantech E Learning
11.7K subscribers
150 photos
4 files
813 links
Download Telegram
List vs Tuple: Difference Between List and Tuple

In Python, list and tuple are a class of data structure that can store one or more objects or values. A list is used to store multiple items in one variable and can be created using square brackets. Similarly, tuples also can store multiple items in a single variable and can be declared using parentheses.
The two data structures are both sequence data types that store collections of items.

Items of any data type can be stored in them.

Items can be accessed by their index.

One of the most important differences between list and tuple is that list is mutable, whereas a tuple is immutable. This means that lists can be changed, and tuples cannot be changed.
Comment your views.
Save for your future reference. For more updates stay tuned. @pantechelearning
#pantechelearning
Any queries regarding major and mini projects contact πŸ“ž us:
WhatsApp us:+91 8925533483/82
Website:www.pantechelearning.com.
.
....
.
.
.
.
.
.
.
.
#pantechelearning #website #programming #coding #snake #code #python #programmer #webdeveloper #computerscience #javascript #softwaredeveloper #machinelearning #html #css #coder #datascience #codinglife #ballpython #softwareengineer #pythonprogramming #linux #php #programmingmemes #programmers #programminglife #js #softwaredevelopment #ballpythonsofinstagram #programmerlife
https://www.instagram.com/p/CP8Ya3zF_7e/?utm_medium=share_sheet
This is the second question that usually ask you in interview so be prepare to answer and if you have some more views on it just drop down your comment. Small things can make a big difference so start up with small things that will place you in a right position 😍.
Python is a dynamically typed interpreted language. These types of languages are typically referred to as β€œscripting” languages because code is not compiled to a binary form. By dynamically typed I mean that types do not need to be declared when coding, the interpreter figures them out at runtime.
Save for your future reference. For more updates stay tuned. @pantechelearning
#pantechelearning
Any queries regarding major and mini projects contact πŸ“ž us:
WhatsApp us:+91 8925533483/82
Website:www.pantechelearning.com.
.
....
.
.
.
.
.
.
.
.
#pantechelearning #website #programming #coding #snake #code #python #programmer #webdeveloper #computerscience #javascript #softwaredeveloper #machinelearning #html #css #coder #datascience #codinglife #ballpython #softwareengineer #pythonprogramming #linux #php #programmingmemes #programmers #programminglife #js #softwaredevelopment #ballpythonsofinstagram #programmerlife
https://www.instagram.com/p/CP96J3ElzU2/?utm_medium=share_sheet
What is PEP 8?
PEP stands for Python Enhancement Proposal. A PEP is a design document providing information to the Python community, or describing a new feature for Python or its processes or environment.
Save for your future reference. For more updates stay tuned. @pantechelearning
#pantechelearning
Any queries regarding major and mini projects contact πŸ“ž us:
WhatsApp us:+91 8925533483/82
Website:www.pantechelearning.com.
.
....
.
.
.
.
.
.
.
.
#pantechelearning #website #programming #coding #snake #code #python #programmer #webdeveloper #computerscience #javascript #softwaredeveloper #machinelearning #html #css #coder #datascience #codinglife #ballpython #softwareengineer #pythonprogramming #linux #php #programmingmemes #programmers #programminglife #js #softwaredevelopment #ballpythonsofinstagram #programmerlife
https://www.instagram.com/p/CP-YcYjFK1V/?utm_medium=share_sheet
What are local and global variables in python?
There are two types of variables: global variables and local variables. The scope of global variables is the entire program whereas the scope of local variable is limited to the function where it is defined.
Save for your future reference. For more updates stay tuned. @pantechelearning
#pantechelearning
Any queries regarding major and mini projects contact πŸ“ž us:
WhatsApp us:+91 8925533483/82
Website:www.pantechelearning.com.
.
....
.
.
.
.
.
.
.
.
#pantechelearning #website #programming #coding #snake #code #python #programmer #webdeveloper #computerscience #javascript #softwaredeveloper #machinelearning #html #css #coder #datascience #codinglife #ballpython #softwareengineer #pythonprogramming #linux #php #programmingmemes #programmers #programminglife #js #softwaredevelopment #ballpythonsofinstagram #programmerlife
https://www.instagram.com/p/CQAZQQKFHJS/?utm_medium=share_sheet
What is _init_?
__init__

The __init__ method is similar to constructors in C++ and Java. Constructors are used to initialize the object’s state. The task of constructors is to initialize(assign values) to the data members of the class when an object of class is created. Like methods, a constructor also contains collection of statements(i.e. instructions) that are executed at time of Object creation. It is run as soon as an object of a class is instantiated. The method is useful to do any initialization you want to do with your object.
Save for your future reference. For more updates stay tuned. @pantechelearning
#pantechelearning
Any queries regarding major and mini projects contact πŸ“ž us:
WhatsApp us:+91 8925533483/82
Website:www.pantechelearning.com.
.
....
.
.
.
.
.
.
.
.
#pantechelearning #website #programming #coding #snake #code #python #programmer #webdeveloper #computerscience #javascript #softwaredeveloper #machinelearning #html #css #coder #datascience #codinglife #ballpython #softwareengineer #pythonprogramming #linux #php #programmingmemes #programmers #programminglife #js #softwaredevelopment #ballpythonsofinstagram #programmerlife
https://www.instagram.com/p/CQEGh1UFS8S/?utm_medium=share_sheet
7 python Job interview questions. We have already posted them before but we don't want you people to miss them. Save for your future reference.
Comment your answer was this helpful. Do you want to know few more questions related to python ... Stay tuned. @pantechelearning
#pantechelearning
Any queries regarding major and mini projects contact πŸ“ž us:
WhatsApp us:+91 8925533483/82
Website:www.pantechelearning.com.
.
....
.
.
.
.
.
.
.
.
#pantechelearning #website #programming #coding #snake #code #python #programmer #webdeveloper #computerscience #javascript #softwaredeveloper #machinelearning #html #css #coder #datascience #codinglife #ballpython #softwareengineer #pythonprogramming #linux #php #programmingmemes #programmers #programminglife #js #softwaredevelopment #ballpythonsofinstagram #programmer Life
https://www.instagram.com/p/CQFnpdiFfas/?utm_medium=share_sheet
Inheritance allows us to define a class that inherits all the methods and properties from another class. Parent class is the class being inherited from, also called base class. Child class is the class that inherits from another class, also called derived class.
What are the types of inheritance in Python?.. Comment down your answer..
Save for your future reference. For more updates stay tuned. @pantechelearning
#pantechelearning
Any queries regarding major and mini projects contact πŸ“ž us:
WhatsApp us:+91 8925533483/82
Website:www.pantechelearning.com.
.
....
.
.
.
.
.
.
.
.
#pantechelearning #website #programming #coding #snake #code #python #programmer #webdeveloper #computerscience #javascript #softwaredeveloper #machinelearning #html #css #coder #datascience #codinglife #ballpython #softwareengineer #pythonprogramming #linux #php #programmingmemes #programmers #programminglife #js #softwaredevelopment #ballpythonsofinstagram #programmerlife
https://www.instagram.com/p/CQVCTEaA7fF/?utm_medium=share_sheet