python Tuples
Tuples are used to store multiple items in a single variable.
Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary, all with different qualities and usage.
A tuple is a collection which is ordered and unchangeable.
Tuples are written with round brackets:
thistuple = ("apple", "banana", "cherry")
print(thistuple) # result: (apple , banana , cheery)
print(thistuple[0]) # result: apple
You can read this post which contains 7 pages of scratch explaining tuples
Click here
Don't forget to follow me on LinkedIn for more information😊
#python #Scratch #Tuples #learnPython
Linkedin
FadL Hasn on LinkedIn: #python #tuple #learnpython #scratch
Python From Scratch Lesson 7 (Python Tuples)
Python Tuples Seven pages of summary to start learning Tuples in Python language
🔗 Looking to upskill in…
Python Tuples Seven pages of summary to start learning Tuples in Python language
🔗 Looking to upskill in…