filmov
tv
Basic Python Tutorial - 4 ...Tuples in Python || Examples | Properties #python
Показать описание
Buy our "Self Study Material", which includes all the Projects Source Codes and Notes of the complete Data Analytics course, which contain all commands of Core Python, Numpy, Pandas, Matplotlib, SQL that we use for Big-Data Analytics ( cost @ Rs.450 or $6 or €6 )
-------------------------------
Complete Course of 'Data Analysis with Python' -
In the video, we have explained what is a Tuple in Python.
This is a very useful and informative video for beginners.
This video is a part of our course - Data Analysis with Python ( Basics )
Tuple is a collection of different data-types like Integers, Floats, Strings.
Each element or value of the tuple is called an 'Item'. We can also say that a Tuple is a sequence of items.
A Tuple is created within ( )
List Vs Tuple
* List is created within [ ] while Tuple is created within ( )
* List items can be changed while Tuple items can't be changed
Tuple = ( integer , float , string )
Properties of a Tuple
1. A tuple allows duplicate items(values) in it.
2. A tuple is immutable. It means a tuple items can not be changed after creating the tuple.
Indexing in a Tuple
X[0:7]
Why Use Tuple ?
Tuple is used if you have to create a sequence of constant items which not needs to be changed later in the program
You can check our real-world projects videos :
#datascience #python_tuple #bigdata #dataanalytics
Комментарии