Advance Functions In Python #01

 Advance Functions in Python

Lists & Tuples

lists and Tuples are collection data types, that allow you to store multiple items in a single variable.
you can have data of different types in lists and tuples.

Ex:     xlist = ["apple", "banana", "berry", 45, 56.2, True]
            xtuple = ("apple", "banana", "berry", 45, 56.2, True)

NOTE: In list, we use [ ] brackets and in Tuples, we use ( ) brackets.


Note: Lists are Mutable which means we can change the values as we want




In Tuples we can't Modify values as we want after programming.
So We Defined tuples as  Immutable.



 Hint: Use http://replit.com for practise your coding skills





Comments

Popular posts from this blog

Calculator v2.0 - python

Hacker Rank C Challenges #003

Advance Functions In Python