#python3 #pythonintelugu #datatypes
#3 Python Data Types Lists & Tuples In Telugu ||Python Beginner Tutorial || Learn Python Programming
Python Built-in Data Types
In programming, data type is an important concept.
Variables can store data of different types, and different types can do different things.
Python has the following data types built-in by default, in these categories:
Bool - Boolean
Numerical int, float
Strings str
Sequence Types - Lists, Tuples, Range, Dictionaries & Sets
Lists are used to store multiple items in a single variable
Created using square brackets [ ] E.g. my_list=[“apple”, “banana”, “grapes”]
List Items are
1. Ordered –Defined order and in general will not change.
New items are placed at the end of the list.
2. Changeable – We can add, change & remove items in a list
3. Allow Duplicates
4. tems are indexed. E.g. mylist[0] gives “apple”
5. List items can be of any data type
Comparison of Sequence Types