top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Python: Difference between tuple and list ?

+1 vote
66 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 ?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...