Python 3 Tutorial for Beginners #14 - Dictionaries

preview_player
Показать описание
Hey gang, in this python 3 tutorial I'll introduce you to another data type - dictionaries. Dicts are a little bit like JavaScript objects - they have key value pairs.

----- COURSE LINKS:

---------------------------------------------------------------------------------------------
Other tutorials:

----- NODE.JS TUTORIALS

============== The Net Ninja =====================

================== Social Links ==================

Рекомендации по теме
Комментарии
Автор

For anyone just watching these courses, you are in for a treat. This gentleman is great at teaching. Excellent job. My question is, do you, tutor, also?

hughclarke
Автор

Love you Shaun. Best thing about you is you teach everything in such a way that we understand everything in a short period of time. I really like your tutorials. Thanks! For such awesome tutorials.

dominicldoe
Автор

Thanks again Net Ninja, been watching you for a year now and you helped me with my homework today.

michaelwest
Автор

thanks. that was a good example how to use dictionaries :)

nachdemsturm
Автор

Wow. I enjoyed this video. When I saw how many people like it so far, I was a little shocked. Please like this so other people could get.

gashawmirtu
Автор

life is short, use python. Thanks, The ninja shaun, greetings from China, big fan of your channel and courses.

AndyInLearning
Автор

How python know that key stand for dictionary.keys and val stand for dictionary.keys ?
And how i made the for formula if i want to print the value or the keys only?

limomotaz
Автор

Very very interesting! I am trying to follow these steps on spider and it does not seem to be working anything after defining ninja_belts. I am using spyder from anaconda: any idea why I can only replicate this in the command prompt?


Thank you

P-SC
Автор

ninja_belts[ninja_name] = ninja_belt that line threw me off, looking for that index into an array. This is a very cool concept I am going to have to get more familiar with.

kinochdotcom
Автор

because i had the last line of atom indented ninja_intro(ninja_belts) it wasnt printing the last 3 lines to cmder, i got it after 5 minutes of trying to find an error in the print line lol

ericpawl
Автор

Hi Shaun, is there no dot notation for dictionaries, as in JavaScript?

Gruximillian
Автор

Are we able to use the data thats being printed on the console to play with it in the py file?

GaneshGGMU
Автор

the video is really cool and very useful. the only problem i see is that after you close your dictionary.py file all the data given by the user/s will lost. i am not 100% sure, but may be you should think about some way to save the user's input in some data-base-like file or in some python-dict-object or something like this.

sntw
Автор

Just a question





in this command basically ninja_name (key) and ninja belt(value) are being assigned to the ninja_belts dictionary: am I right?

P-SC
welcome to shbcf.ru