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
  Python For Beginners Course In-Depth
Python: A Comprehensive Introduction to Fundamental Python Concepts and the Python Advanced Programming Concepts
Rating βοΈ: 4.2 out 5
Students π¨βπ : 226,748
Duration β° : 7 hours on-demand video
Created by π¨βπ«: Horizon Academy
π Course Link
β οΈ Its free for first 1000 enrollments only!
#python
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
  
  Python: A Comprehensive Introduction to Fundamental Python Concepts and the Python Advanced Programming Concepts
Rating βοΈ: 4.2 out 5
Students π¨βπ : 226,748
Duration β° : 7 hours on-demand video
Created by π¨βπ«: Horizon Academy
π Course Link
β οΈ Its free for first 1000 enrollments only!
#python
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
Udemy
  
  Python For Beginners Course In-Depth
  Python: A Comprehensive Introduction to Fundamental Python Concepts and the Python Advanced Programming Concepts
π6π1π1
  Python for Data Visualization: The Complete Masterclass
Transforming Data into Insights: A Comprehensive Guide to Python-based Data Visualization
Rating βοΈ: 4.6 out 5
Students π¨βπ : 29,613
Duration β° : 3.5 hours on-demand video
Created by π¨βπ«: Meta Brains
π Course Link
β οΈ Its free for first 1000 enrollments only!
#python #data_visualization
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
  
  Transforming Data into Insights: A Comprehensive Guide to Python-based Data Visualization
Rating βοΈ: 4.6 out 5
Students π¨βπ : 29,613
Duration β° : 3.5 hours on-demand video
Created by π¨βπ«: Meta Brains
π Course Link
β οΈ Its free for first 1000 enrollments only!
#python #data_visualization
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
Udemy
  
  Python for Data Visualization: The Complete Masterclass
  Transforming Data into Insights: A Comprehensive Guide to Python-based Data Visualization
π7
  Learn Python Language Fundamentals In Simple Way
To Know Basics of Python and To Enter Python World Very Easily
β° Free Online Course
π¬ video lessons
Rating βοΈ: 4.5 out 5
Students π¨βπ : 66,678
Duration β° : 10hr 57min of on-demand video
Created by π¨βπ«: DURGASOFT DURGA
π COURSE LINK
#python #programming
ββββββββββββββ
πJoin @python_bds for moreπ
  
  To Know Basics of Python and To Enter Python World Very Easily
β° Free Online Course
π¬ video lessons
Rating βοΈ: 4.5 out 5
Students π¨βπ : 66,678
Duration β° : 10hr 57min of on-demand video
Created by π¨βπ«: DURGASOFT DURGA
π COURSE LINK
#python #programming
ββββββββββββββ
πJoin @python_bds for moreπ
Udemy
  
  Free Python Tutorial - Learn Python Language Fundamentals In Simple Way
  To Know Basics of Python and To Enter Python World Very Easily - Free Course
β€3π₯2π1
  azure-sdk-for-python
This repository is for active development of the Azure SDK for Python.
Creator: Microsoft Azure
Stars βοΈ: 4.3k
Forked By: 2.7k
https://github.com/Azure/azure-sdk-for-python
#python #azure
ββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
  
  This repository is for active development of the Azure SDK for Python.
Creator: Microsoft Azure
Stars βοΈ: 4.3k
Forked By: 2.7k
https://github.com/Azure/azure-sdk-for-python
#python #azure
ββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
GitHub
  
  GitHub - Azure/azure-sdk-for-python: This repository is for active development of the Azure SDK for Python. For consumers of theβ¦
  This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our v...
  Python Complete Course For Beginners
This Python Course is a Depth Introduction to Fundamental Python Programming Concepts and Python Programming Language.
Rating βοΈ: 4.3 out 5
Students π¨βπ : 230,667
Duration β° : 5.5 hours on-demand video
Created by π¨βπ«: Horizon Tech
π Course Link
β οΈ Its free for first 1000 enrollments only!
#python
ββββββββββββββ
πJoin @python_bds for moreπ
  
  This Python Course is a Depth Introduction to Fundamental Python Programming Concepts and Python Programming Language.
Rating βοΈ: 4.3 out 5
Students π¨βπ : 230,667
Duration β° : 5.5 hours on-demand video
Created by π¨βπ«: Horizon Tech
π Course Link
β οΈ Its free for first 1000 enrollments only!
#python
ββββββββββββββ
πJoin @python_bds for moreπ
Udemy
  
  Python Complete Course For Beginners
  This Python Course is a Depth Introduction to Fundamental Python Programming Concepts and Python Programming Language.
π4
  Forwarded from Free programming books
Please open Telegram to view this post
    VIEW IN TELEGRAM
  30-Days-Of-Python
30 days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than100 days, follow your own pace.
Creator: Asabeneh
Stars βοΈ: 33.2k
Forked By: 6.7k
https://github.com/Asabeneh/30-Days-Of-Python
#python
ββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
  
  30 days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than100 days, follow your own pace.
Creator: Asabeneh
Stars βοΈ: 33.2k
Forked By: 6.7k
https://github.com/Asabeneh/30-Days-Of-Python
#python
ββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
GitHub
  
  GitHub - Asabeneh/30-Days-Of-Python: 30 days of Python programming challenge is a step-by-step guide to learn the Python programmingβ¦
  30 days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days, follow your own pace.  These videos ...
π5
  30-Days-Of-Python
30 days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than100 days, follow your own pace.
Creator: Asabeneh
Stars βοΈ: 33.2k
Forked By: 6.7k
https://github.com/Azure/azure-sdk-for-python
#python #azure
ββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
  
  30 days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than100 days, follow your own pace.
Creator: Asabeneh
Stars βοΈ: 33.2k
Forked By: 6.7k
https://github.com/Azure/azure-sdk-for-python
#python #azure
ββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
GitHub
  
  GitHub - Azure/azure-sdk-for-python: This repository is for active development of the Azure SDK for Python. For consumers of theβ¦
  This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our v...
π8
  Free Python Courses, Books and Cheat Sheets (part 2)
Additional materials
Books
A list of Python books in English that are free to read online or download
Learn Python the Hard Way
Python for Everybody
Automate The Boring Stuff With Python
Python 3 Patterns, Recipes and Idioms
Clean Architectures in Python
python intro notes
An introduction to Python for absolute beginners
python programming notes
Python Data Science Handbook
Cheat sheets
Python Tutorial -> Condensed Cheatsheet
Python Programming Exercises, 2022., gently explained
python matplotlib
python panda
python basics
python seaborn
Useful Python for data science cheat sheets
python data type cheat sheet
python cheat sheets
GitHub Repositories
Machine Learning University: Accelerated Natural Language Processing Class
Hands on ML notebook series
Machine learning cheat sheet with code
#python #python3
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
  
  Additional materials
Books
A list of Python books in English that are free to read online or download
Learn Python the Hard Way
Python for Everybody
Automate The Boring Stuff With Python
Python 3 Patterns, Recipes and Idioms
Clean Architectures in Python
python intro notes
An introduction to Python for absolute beginners
python programming notes
Python Data Science Handbook
Cheat sheets
Python Tutorial -> Condensed Cheatsheet
Python Programming Exercises, 2022., gently explained
python matplotlib
python panda
python basics
python seaborn
Useful Python for data science cheat sheets
python data type cheat sheet
python cheat sheets
GitHub Repositories
Machine Learning University: Accelerated Natural Language Processing Class
Hands on ML notebook series
Machine learning cheat sheet with code
#python #python3
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
GitHub
  
  GitHub - pamoroso/free-python-books: Python books free to read online or download
  Python books free to read online or download. Contribute to pamoroso/free-python-books development by creating an account on GitHub.
π1
  Learn Programming in Python! - Data Visualization in Python
Learn to visualize data using Pyplot and master the Python Programming Language!
Rating βοΈ: 4.1 out 5
Students π¨βπ : 9,293
Duration β° : 38min of on-demand video
Created by π¨βπ«: Nirmali Khound Baruah
π Course Link
#python #data_visualization
ββββββββββββββ
πJoin @python_bds for moreπ
  
  Learn to visualize data using Pyplot and master the Python Programming Language!
Rating βοΈ: 4.1 out 5
Students π¨βπ : 9,293
Duration β° : 38min of on-demand video
Created by π¨βπ«: Nirmali Khound Baruah
π Course Link
#python #data_visualization
ββββββββββββββ
πJoin @python_bds for moreπ
Udemy
  
  Free Python Tutorial - Learn Programming in Python! - Data Visualization in Python
  Learn to visualize data using Pyplot and master the Python Programming Language! - Free Course
π3
  Build local LLM applications using Python and Ollama
Learn to create LLM applications in your system using Ollama and LangChain in Python | Completely private and secure
Rating βοΈ: 4.7 out 5
Students π¨βπ : 2,534
Duration β° : 2 hours on-demand video
π©βπ» 2 articles
2 downloadable resources
Created by π¨βπ«: Star Tech
π COURSE LINK
β οΈ Its free for first 1000 enrollments only!
#LLM #python
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
  
  Learn to create LLM applications in your system using Ollama and LangChain in Python | Completely private and secure
Rating βοΈ: 4.7 out 5
Students π¨βπ : 2,534
Duration β° : 2 hours on-demand video
π©βπ» 2 articles
2 downloadable resources
Created by π¨βπ«: Star Tech
π COURSE LINK
β οΈ Its free for first 1000 enrollments only!
#LLM #python
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
Udemy
  
  Build local LLM applications using Python and Ollama
  Learn to create LLM applications in your system using Ollama and LangChain in Python | Completely private and secure
β€3
  Python: From Zero to Hero - Code Your Way to the Top
Rating βοΈ: 4.4 out 5
Students π¨βπ : 233,718
Duration β° : 4.5 hours on-demand video
π©βπ» 1 article
9 downloadable resources
Created by π¨βπ«: Ahmed El Mohandes
π COURSE LINK
β οΈ Its free for first 1000 enrollments only!
#python
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
  
  Rating βοΈ: 4.4 out 5
Students π¨βπ : 233,718
Duration β° : 4.5 hours on-demand video
π©βπ» 1 article
9 downloadable resources
Created by π¨βπ«: Ahmed El Mohandes
π COURSE LINK
β οΈ Its free for first 1000 enrollments only!
#python
ββββββββββββββ
πJoin @bigdataspecialist for moreπ
Udemy
  
  Python: From Zero to Hero - Code Your Way to the Top
  Python 2024: Blast Off from Beginner to Pro - Your Coding Rocket Awaits
β€2
  Selenium Base
Python APIs for web automation, testing, and bypassing bot-detection.
Creator: Selenium ase
Stars βοΈ: 6.5k
Forked By: 1k
GithubRepo: https://github.com/seleniumbase/SeleniumBase
#API #python
ββββββββββββββ
Join @python_bds for more cool repositories.
*This channel belongs to @bigdataspecialist group
  
  Python APIs for web automation, testing, and bypassing bot-detection.
Creator: Selenium ase
Stars βοΈ: 6.5k
Forked By: 1k
GithubRepo: https://github.com/seleniumbase/SeleniumBase
#API #python
ββββββββββββββ
Join @python_bds for more cool repositories.
*This channel belongs to @bigdataspecialist group
GitHub
  
  GitHub - seleniumbase/SeleniumBase: Python APIs for web automation, testing, and bypassing bot-detection.
  Python APIs for web automation, testing, and bypassing bot-detection. - seleniumbase/SeleniumBase
β€3π2
  Python from Zero-to-Hero (Beginner Level)
Get familiar with Python, a modern programming language and start coding your first programs
Rating βοΈ: 4.5 βοΈ (776 reviews)
Students π¨βπ : 30,209
Duration β° : 5 hour, 49 lectures
Created by π¨βπ«: Kioomars Jonood,Samaneh Mazidi Sharaf Abadi
π COURSE LINK
β οΈ Its free for first 1000 enrollments only!
#python
ββββββββββββββ
Join @python_bds to become better python programmer
*This channel belongs to @bigdataspecialist group
  
  Get familiar with Python, a modern programming language and start coding your first programs
Rating βοΈ: 4.5 βοΈ (776 reviews)
Students π¨βπ : 30,209
Duration β° : 5 hour, 49 lectures
Created by π¨βπ«: Kioomars Jonood,Samaneh Mazidi Sharaf Abadi
π COURSE LINK
βοΈCoupon code: D00E8A1359601965F49BβοΈ
β οΈ Its free for first 1000 enrollments only!
#python
ββββββββββββββ
Join @python_bds to become better python programmer
*This channel belongs to @bigdataspecialist group
Udemy
  
  Python from Zero-to-Hero (Beginner Level)
  Get familiar with Python, a modern programming language and start coding your first programs