top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Python: Difference between tuple and list ?

+1 vote
321 views
Python: Difference between tuple and list ?
posted May 14, 2017 by Rupam

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Hi,

Both are data types in python, but one major difference is tuple is immutable(value cannot change) and list is mutable.tuple can be used as dictionary key but list cannot be a dictionary key.

answer May 29, 2017 by Jaganathan
Similar Questions
0 votes

Both the functions gives same output

str(18)
'18'

repr(18)
'18'

What differences these two functions have in term of functionality and in whic scenarios these two functions are used ?

0 votes

Both the functions are used to take user inputs but how to decide which one to use ?

...