Python OOP : Object Oriented Programming in Python
Python Object Oriented programming OOP advanced / Scripting for projects / automation / interview questions / beginners
ā° Free Online Course
š¬ video lessons
Rating āļø: 4.6 out 5
Students šØāš : 2,418
Duration ā° : 2hr 10min of on-demand video
Created by šØāš«: Deepali Srivastava
š COURSE LINK
#python #programming #OOP
āāāāāāāāāāāāāā
šJoin @python_bds for moreš
Python Object Oriented programming OOP advanced / Scripting for projects / automation / interview questions / beginners
ā° Free Online Course
š¬ video lessons
Rating āļø: 4.6 out 5
Students šØāš : 2,418
Duration ā° : 2hr 10min of on-demand video
Created by šØāš«: Deepali Srivastava
š COURSE LINK
#python #programming #OOP
āāāāāāāāāāāāāā
šJoin @python_bds for moreš
Udemy
Free Python Tutorial - Python OOP : Object Oriented Programming in Python
Python Object Oriented programming OOP advanced / Scripting for projects / automation / interview questions / beginners - Free Course
Using tuples as keys in dictionaries
Since tuples are hashable, and list is not, we must use tuple as the key if we need to create a composite key to use in a dictionary.
Example: We would come across a composite key if we need to create a telephone directory that maps, first-name, last-name, pairs of telephone numbers, etc. Assuming that we have declared the variables as last and first number, we could write a dictionary assignment statement as shown below:
Inside the brackets, the expression is a tuple. We could use tuple assignment in a for loop to navigate this dictionary.
This loop navigates the keys in the directory, which are tuples. It assigns the elements of each tuple to last and first and then prints the name and corresponding telephone number.
Tuples and dictionary
Dictionary can return the list of tuples by calling items, where each tuple is a key value pair.
š Read Online
#Python #python_3
āāāāāāāāāāāāā
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
Since tuples are hashable, and list is not, we must use tuple as the key if we need to create a composite key to use in a dictionary.
Example: We would come across a composite key if we need to create a telephone directory that maps, first-name, last-name, pairs of telephone numbers, etc. Assuming that we have declared the variables as last and first number, we could write a dictionary assignment statement as shown below:
directory[last,first] = number
Inside the brackets, the expression is a tuple. We could use tuple assignment in a for loop to navigate this dictionary.
for last, first in directory:
print first, last, directory[last, first]
This loop navigates the keys in the directory, which are tuples. It assigns the elements of each tuple to last and first and then prints the name and corresponding telephone number.
Tuples and dictionary
Dictionary can return the list of tuples by calling items, where each tuple is a key value pair.
a = {'x':100, 'y':200}
b = list(a.items())
print(b)
š Read Online
#Python #python_3
āāāāāāāāāāāāā
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
Guru99
Python TUPLE ā Pack, Unpack, Compare, Slicing, Delete, Key
A Python tuple is just like a list of a sequence of immutable objects. Learn Packing, Unpacking, Comparing, Slicing and Deleting of tuples with examples in this tutorial.
š4ā¤2
Learn R and Python Programming for Data Visualization
From Raw Data to Insightful Narratives: Creating Visual Charts
ā° Free Online Course
š¬ video lessons
Rating āļø: 4.6 out 5
Students šØāš : 2,300
Duration ā° : 1hr 56min of on-demand video
Created by šØāš«: Pranjal Srivastava, Harshit Srivastava
š COURSE LINK
#python #programming #R
āāāāāāāāāāāāāā
šJoin @python_bds for moreš
From Raw Data to Insightful Narratives: Creating Visual Charts
ā° Free Online Course
š¬ video lessons
Rating āļø: 4.6 out 5
Students šØāš : 2,300
Duration ā° : 1hr 56min of on-demand video
Created by šØāš«: Pranjal Srivastava, Harshit Srivastava
š COURSE LINK
#python #programming #R
āāāāāāāāāāāāāā
šJoin @python_bds for moreš
Udemy
Free Tutorial - Learn R and Python Programming for Data Visualization
From Raw Data to Insightful Narratives: Creating Visual Charts - Free Course
ā¤3š2
Deleting Tuples
Tuples are immutable and cannot be deleted. You cannot delete or remove items from a tuple. But deleting tuple entirely is possible by using the keyword
The output of this code will be (ācā, ādā).
š Read Online
#Python #python_3
āāāāāāāāāāāāā
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
Tuples are immutable and cannot be deleted. You cannot delete or remove items from a tuple. But deleting tuple entirely is possible by using the keyword
delSlicing of Tuple
To fetch specific sets of sub-elements from tuple or list, we use this unique function called slicing. Slicing is not only applicable to tuple but also for array and list.
x = ("a", "b","c", "d", "e")
print(x[2:4])The output of this code will be (ācā, ādā).
š Read Online
#Python #python_3
āāāāāāāāāāāāā
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
Guru99
Python TUPLE ā Pack, Unpack, Compare, Slicing, Delete, Key
A Python tuple is just like a list of a sequence of immutable objects. Learn Packing, Unpacking, Comparing, Slicing and Deleting of tuples with examples in this tutorial.
Forwarded from Free programming books
Please open Telegram to view this post
VIEW IN TELEGRAM
phidata
Build AI Assistants using function calling
Creator: Abhishek Veeramalla
Stars: āļø 830
Forked by: 94
https://github.com/phidatahq/phidata
#python
āāāāāāāāāāāāāā
Join @github_repositories_bds for more cool repositories.
*This channel belongs to @bigdataspecialist group
Build AI Assistants using function calling
Creator: Abhishek Veeramalla
Stars: āļø 830
Forked by: 94
https://github.com/phidatahq/phidata
#python
āāāāāāāāāāāāāā
Join @github_repositories_bds for more cool repositories.
*This channel belongs to @bigdataspecialist group
GitHub
GitHub - agno-agi/agno: Multi-agent framework, runtime and control plane. Built for speed, privacy, and scale.
Multi-agent framework, runtime and control plane. Built for speed, privacy, and scale. - agno-agi/agno
ā¤2
The Art of Doing: Master the Basics of Python GUIs!
Learn the fundamentals of the Tkinter library and starting making Python GUI apps today!
ā° Free Online Course
š¬ video lessons
Rating āļø: 4.9 out 5
Students šØāš : 16650
Duration ā° : 1hr 56min of on-demand video
Created by šØāš«: Michael Eramo
š COURSE LINK
#python #programming
āāāāāāāāāāāāāā
šJoin @python_bds for moreš
Learn the fundamentals of the Tkinter library and starting making Python GUI apps today!
ā° Free Online Course
š¬ video lessons
Rating āļø: 4.9 out 5
Students šØāš : 16650
Duration ā° : 1hr 56min of on-demand video
Created by šØāš«: Michael Eramo
š COURSE LINK
#python #programming
āāāāāāāāāāāāāā
šJoin @python_bds for moreš
Udemy
Free Python Tutorial - The Art of Doing: Master the Basics of Python GUIs!
Learn the fundamentals of the Tkinter library and starting making Python GUI apps today! - Free Course
š4ā¤2