First time here? Checkout the
FAQ
!
x
Login
Remember
Register
Ask Data Science!
About
All Activity
Q&A
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Ask a Question
What is the difference between list and tuples in Python?
0
votes
316
views
asked
Jul 9, 2019
in
Python Interview Questions
by
askpython
(
1.4k
points)
python
python-basics
python-interview
Tweet
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 9, 2019
by
askpython
(
1.4k
points)
List
Tuple
Lists are mutable i.e they can be edited.
Tuples are immutable (tuples are lists which can't be edited).
Lists are slower than tuples.
Tuples are faster than list.
Syntax: list_ 1 = [10, 'Chelsea', 20)
Syntax: tup_ 1 = (10, 'Chelsea' , 20)
Please
log in
or
register
to add a comment.
Related questions
+1
vote
1
answer
359
views
What is the difference between Python Arrays and Lists?
asked
Jul 11, 2019
in
Python Interview Questions
by
askpython
(
1.4k
points)
python
python-basics
python-interview
+1
vote
1
answer
559
views
What are the local variables and global variables in Python?
asked
Jul 9, 2019
in
Python Interview Questions
by
askpython
(
1.4k
points)
python
python-basics
python-interview
+1
vote
1
answer
610
views
What are self and _init_ in Python classes?
asked
Jul 11, 2019
in
Python Interview Questions
by
askpython
(
1.4k
points)
python
python-basics
python-interview
+1
vote
1
answer
394
views
What is type conversion in Python?
asked
Jul 9, 2019
in
Python Interview Questions
by
askpython
(
1.4k
points)
python
python-basics
python-interview
+1
vote
1
answer
283
views
What is PYTHONPATH in Python?
asked
Jul 9, 2019
in
Python Interview Questions
by
askpython
(
1.4k
points)
python
python-basics
python-interview
Categories
All categories
Programming
(38)
Data Science
(130)
Machine Learning
(78)
Deep Learning
(9)
Artificial Intelligence
(3)
Web Development
(8)
Mobile Development
(0)
Cloud Computing
(10)
Human Computer Interaction
(92)
Python Interview Questions
(18)
Data Science Interview Questions
(19)
Machine Learning Interview Questions
(17)
Deep Learning Interview Questions
(2)
424
questions
364
answers
99
comments
665
users
...