Tags: Python Python Dictionary Python dict Hashmap Associative Array Key-Value Pairs Python For Beginners Absolute Beginners Python for Absolute Beginners Python Basics Python Data Types Getting Started with Python Python 3.6 Python 36 Python 3 python dictionary tutorial python dictionaries in python python dictionary python tutorial python 3
In this Python Beginner Tutorial, we will begin learning about dictionaries. Dictionaries allow us to work with key-value pairs in Python. We will go over dictionary methods, how to add and remove values, and also how to loop through the key-value pairs. Let's get started.
The code from this video can be found at:
https://github.com/CoreyMSchafer/code_snippets/tree/master/Python-Dicts
Watch the full Python Beginner Series here:
https://www.youtube.com/playlist?list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7
β Support My Channel Through Patreon:
https://www.patreon.com/coreyms
β Become a Channel Member:
https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join
β One-Time Contribution Through PayPal:
https://goo.gl/649HFY
β Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
β Corey's Public Amazon Wishlist
http://a.co/inIyro1
β Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer
βΆοΈ You Can Find Me On:
My Website - http://coreyms.com/
My Second Channel - https://www.youtube.com/c/coreymschafer
Facebook - https://www.facebook.com/CoreyMSchafer
Twitter - https://twitter.com/CoreyMSchafer
Instagram - https://www.instagram.com/coreymschafer/
#Python
or
Question
why use student.update = "..." when you could just do student = "..."?
how can you update name of a key in a dictionary ? for example if I wanted to change the name from 'courses' to 'subjects' and still have all the values.
The day i'll get my first salary i'll surely contribute!
for now only i can say is Thank you so much!
Hello Corey, and thank you for your awesome tutorials. At 2:18 of this video did you said mutable or immutable data types? Because immutable sounds weird to me. It means data that can not be changed, but the strings and lists that we use here are muttable data right? Sorry for my noob questions but i just started learnig how to code! Thanks in advance! :)
on the
FOR key, value IN student.ITEMS():
can someone explain how the for loop works?
because key and value are not defined until now and are arbitrary terms (could have chosen women, coke if i really wanted)
I know it then calls the PRINT function but I dont understand how this works.
Is it because the 'IN student' part tells the key, value to refer to student object? How are these stored in a 2x3 (column x row) matrix?
I'm studying Python on DataQuest and this channel is amazing to compliment the theory. Mos def will be donating soon!
Hi, how can I store multiple dictionary in a dictionary like {{'name': 'Hey', 'age': 23}, {'name': 'Yow', 'age': 24}}. Thank youu