list and tuple in Python

 Question

What are lists and tuples?

list and tuple in Python

both are used to store multiple data in a single variable but there are some basic difference that list are changeable where tuples are not changeable.

list are define in [ ] brackets where tuples are define in ( ) brackets.

Comments

Popular posts from this blog

Proassignmenthelp index 27

HackerRank Question: Print Function

Programmingshark index 18