Python Programming #6 - Dictionaries

preview_player
Показать описание
Python Programming for Beginners! A series of Python Tutorials covering all the basics of Python programming. In this video we'll cover everything about dictionaries, how to create them, add and delete items in them, and various functions revolving around lists.

♦♦♦♦♦♦♦♦♦♦

THECODEX is a company focused on empowering and enabling anyone to learn how to code. Established in 2015 by Avinash Jain, THECODEX has taught over 600,000 students around the world how to code. With over 16 programming courses on a wide variety of topics, and more than 20,000 5-Star reviews, THECODEX is the right choice for you.

We provide engaging and comprehensive videos that break down complex information and cover everything you need to know about the subject. All students get access to our Q/A forums where you can get your doubts and problems cleared up. At the end of every course, you will receive a certificate of completion.

Jumpstart your Coding Journey with THECODEX today!

♦♦♦♦♦♦♦♦♦♦

Music: Flash Funk (Marshmello)
Рекомендации по теме
Комментарии
Автор

Found you on Udemy. Your videos are great. They're not too lengthy, and are very easy to follow.
Thank you for making these!
Subscribed :)

Aj
Автор

Really enjoy your videos! They are not too long and really clear. Ive watched several other beginner tutorials and none have been as easy to follow as yours. Thanks again for all your hard work making these!

tedstepp
Автор

Hi,
First of all, I want send a lot of gratitude to your door.
I just started out learning Python and your videos have been a great help.
I do this stuff on the side window with the video playing and it helps me a lot.


But this time around, I can't seem to make it work.
As you did, I created a list first and then typed in the dictionary. But then when I call the dictionary, output shows me the list.


Like so:
students_age=['a', 10, 'b', 11, 'c', 12]

students_age
Out[3]: ['a', 10, 'b', 11, 'c', 12]
studens_age={"a":10, "b":11, "c":12}
students_age
Out[5]: ['a', 10, 'b', 11, 'c', 12]


When I try with a different name though, it works. But when I call the previous dictionary, output again shows me the list.


Like so:
students_age=['a', 10, 'b', 11, 'c', 12]
students_age
Out[3]: ['a', 10, 'b', 11, 'c', 12]
studens_age={"a":10, "b":11, "c":12}
students_age
Out[5]: ['a', 10, 'b', 11, 'c', 12]
aa={'x':1, 'y':2}
aa
Out[7]: {'x': 1, 'y': 2}
studens_age={"a":10, "b":11, "c":12}
students_age
Out[9]: ['a', 10, 'b', 11, 'c', 12]


What am I doing wrong?

kshitijkadiya
Автор

Learning Python is something you would like to get in your skills, but you do not know where to start? This NEW channel will help you out leaning Python Programming from scratch - for complete Beginners, Intermediate and Advanced Levels

DigitalAcademyOnline
Автор

I just found your videos, and I like them!

MyTubeUtoo
Автор

Bro you're so clear with your videos, It's amazing.
#Bestteacherever

reset
Автор

And how can we add multiple values to the dictionary corresponding to one key

shubhamprakash
Автор

Is there a way you can use the value to find the key it is associated too or is it only find the value from the key it is associated with??

kitsienkabiti
Автор

How can we add something to the dict? as we did earlier with the keyword append, can we also do it here? please explain.

sohamchakraborty
Автор

Can we have multiple values for a key?

adwaithegde
Автор

How do we add something in our dictionary? The dictionary.append() function is not working

parthsharma
Автор

Hey avi I want to ask about dictionaries if I use the max and min command what will give us I tried it there is no error but the result is not true

franmay
Автор

How can we add a string to the dictionary???

saswatmeher
Автор

yes, nice video, but how can I add a new student ? i tried with "append" function, but nothing

sebastian
Автор

How different is Dictionaries in python different from JSON or an Object in Javascript ?

sandeepvk
Автор

is there an add or + command for adding similar to del or deleting an entry into a dictionary? 12/29/2020

zerokyle
Автор

you wrote students=("bob":12, "Racheal":13, :"Emilly":15) but the name printed as emily >bob>Racheal, why ? -- it should come the same way i have wrote, isnt' it?

srijeetbiswas
Автор

Hey avi ! Great work... I'm taking your lectures in udemy...
I have one doubt how to save this project in pycharm I'm new in this feild and I'm trying but I'm not getting any way...
Please help...

srijanyadav
Автор

How to add (append) multiple items (key-value pair) to a dictionary, that already created. We can use students["rache"] = 15 snippet to add one item.. but how to add multiple items?

faiz
Автор

Bob from human resources
Rachel ( we all know)
Emily the british chippe

bansikhiraiya