Learning tuples in python
Learning tuples in python
Today i am starting a coding video where i am going to tell you waht tuples are in python now tuples in python is similar to lists in python so the diffrence of tuples and lists in python is that in lists in python you can change the lists and mutat it but in tuples in python you cannot change it so it you have a tuple in python you cannot change it so if you change the tuples in python it will give you and error that it says " 'tuples' object does not support item assignment" because it is immutable because be cannot change tuples in python but tuples are niche and there using more situations now if you are in a situation where you want to restore data that cannot be changed then tuples are the way to go.
Tuples in python about:
Python Tuples. A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists. The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use parentheses, whereas lists use square brackets.
Lists in python about:
The list and tuple data structures are both used to store data in Python. Sometimes when you have a list of tuples, you want to know if a specific tuple exists in the list. In this post, we'll learn how you check if your list of tuples contains a specific tuple. In this example, we have a 3-element list of tuples, each with a pair of strings.
Python programming language about:
Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.
Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. It is often described as a "batteries included" language due to its comprehensive standard library.
Guido van Rossum began working on Python in the late 1980s as a successor to the ABC programming language and first released it in 1991 as Python 0.9.0.[36] Python 2.0 was released in 2000 and introduced new features such as list comprehensions, cycle-detecting garbage collection, reference counting, and Unicode support. Python 3.0, released in 2008, was a major revision that is not completely backward-compatible with earlier versions. Python 2 was discontinued with version 2.7.18 in 2020.
Python consistently ranks as one of the most popular programming languages
Python programming language info:
ParadigmMulti-paradigm: object-oriented, procedural (imperative), functional, structured, reflective
Designed byGuido van Rossum
DeveloperPython Software Foundation
First appeared20 February 1991
Stable release3.11.0 / 24 October 2022
Preview release3.12.0a1 / 25 October 2022
Typing disciplineDuck, dynamic, strong typing; gradual (since 3.5, but ignored in CPython)
OSWindows, macOS, Linux/UNIX, Android and more
Python Hastags:
#pythonprogramming #pythonforbeginners #pythontutorial #pythoncourse
Thank you SO MUCH for watching my python coding video.