Python Dictionaries: {key: value} Pairs #17

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2025

ความคิดเห็น • 49

  • @programizstudios
    @programizstudios  2 ปีที่แล้ว

    🔥 Learn Python with a more hands-on experience with Programiz PRO-interactive lessons, quizzes & challenges.
    Try Programiz PRO: bit.ly/right-python

  • @DanKolis
    @DanKolis 4 ปีที่แล้ว +38

    This guy is basically a perfect presenter. Exactly correctly pace, examples just frame the issue perfectly )... Thanks Dude

    • @cduran1983
      @cduran1983 3 ปีที่แล้ว

      Same here! Just found it! And am staying for good!!! Love how he presents the content!!

  • @ranjeet5806
    @ranjeet5806 3 ปีที่แล้ว +12

    answers:
    1.peak
    2.whole dictionary with added key as terrain: "land"
    3.mountain: peak , terrain: land

  • @rhyswells8725
    @rhyswells8725 4 ปีที่แล้ว +4

    I am impressed by the quality here, keep it up.

  • @jmie5
    @jmie5 4 ปีที่แล้ว +2

    Learning Python isn't so bad, but trying to put it all together is cruel and unusual hell. Just hell for me. Sir, I am so glad I found your videos. You're cheerful, have a well thought-out lesson plan, are easy to understand, and I can actually see the entire code as you type it out. And it's free to boot. Subbed.

    • @programizstudios
      @programizstudios  4 ปีที่แล้ว +1

      Glad our course helped you. Stay tuned for more Python videos from us.

  • @muzammilsyed3838
    @muzammilsyed3838 4 ปีที่แล้ว +9

    Sir, I am a python student. Programiz web site and TH-cam channel has helped me lot in learning python in lock down but recently Python 3.9.0 was released. So, my question is, has python 3.9.0 changed any important components of python. If any components are changed please make a video toturial about that.

  • @kaustavsaha6005
    @kaustavsaha6005 2 ปีที่แล้ว

    Most Standerd channel for python 🖤

  • @carlsdarvin
    @carlsdarvin ปีที่แล้ว

    The ("age") key at 1:49 is not a tuple, it is a string actually, right?

  • @lo2246
    @lo2246 3 ปีที่แล้ว +3

    indian guys are our light

  • @hubertcombomarketing2693
    @hubertcombomarketing2693 3 ปีที่แล้ว +2

    There must be a comma after the first element to make a tuple ("age",).

  • @anony-mous8881
    @anony-mous8881 4 ปีที่แล้ว +1

    If I just want to print out a particular key... and not all the keys.. how do you do this? appreciate the help!

  • @jalalkarimov5754
    @jalalkarimov5754 3 ปีที่แล้ว

    Thank you Punit, your videos and explanations help a lot to learn Python.

  • @joyceadhiambo9977
    @joyceadhiambo9977 2 ปีที่แล้ว

    1. peak
    2. {'mountain': 'peak', 'forest': 'jungle', 'terrain': 'land'}
    3. {'mountain': 'peak', 'terrain': 'land'}

  • @ignaciosaavedra7115
    @ignaciosaavedra7115 3 ปีที่แล้ว

    1:59 acording to w3school, thats not a single item tuple, you missed the comma after the object of the tuple.

  • @kushalkumar8173
    @kushalkumar8173 2 ปีที่แล้ว

    how to pair keys from excel data for multiple rows and columns?

  • @joyceadhiambo9977
    @joyceadhiambo9977 2 ปีที่แล้ว

    this is a perfect course, keep it up

  • @cduran1983
    @cduran1983 3 ปีที่แล้ว

    Awesome channel! Gonna do my python learning from all of your content!! Thanks for sharing! Also, I installed the app!! Thanks again!!

  • @JBerry0129
    @JBerry0129 ปีที่แล้ว

    great presenting. easy to understand. thanks!

  • @saifurrehman6756
    @saifurrehman6756 4 ปีที่แล้ว

    I wonder, after checking, why .remove is not working in the case of a dictionary?

  • @mohammadabdullahaalforhad1375
    @mohammadabdullahaalforhad1375 2 ปีที่แล้ว

    thanks for sharing triks

  • @majidalich2947
    @majidalich2947 3 ปีที่แล้ว

    1. Peak
    2. {'Mountain': 'Peak', 'Forest': 'Jungle', 'terrain': 'land'}
    3. {'Mountain': 'Peak', 'terrain': 'land'}

  • @garyr4418
    @garyr4418 3 ปีที่แล้ว

    Thanks brother. Nice explanation. Stay blessed.

  • @Islamicduniya78633
    @Islamicduniya78633 ปีที่แล้ว

    Iam not able to run the dictionary in your compiler

  • @sureshvarthya2250
    @sureshvarthya2250 2 ปีที่แล้ว

    1."peak"
    2.{"mountain": "peak", "forest": "jungle", "terrain": "land"}
    3.{"mountain": "peak", "terrain": "land"}

  • @shrinivasbutla5093
    @shrinivasbutla5093 3 ปีที่แล้ว

    how to write python program drop empty Items from a given Dictionary

  • @muditkaura6-c94
    @muditkaura6-c94 3 ปีที่แล้ว

    I have a doubt in get method.

  • @furkancelebio
    @furkancelebio 2 ปีที่แล้ว

    thanks my dear friend

  • @ganneruvaramroshinichitti5407
    @ganneruvaramroshinichitti5407 3 ปีที่แล้ว

    super explanation sir thank you soo much ....

  • @muditkaura6-c94
    @muditkaura6-c94 3 ปีที่แล้ว

    Thank You ,All doubts are clear.

  • @waltg6216
    @waltg6216 4 ปีที่แล้ว

    I was curious about all the excess bracketing and I ran the following:
    person1 = {"name":"Linus","age":21}
    person1["hobbies"] = "philately" # Instead of ["hobbies"]=["philately"]
    print(person1)
    I got the following output:
    >>> %Run 17_PythonDictionariesToStoreKeyValuePairs.py
    {'name': 'Linus', 'age': 21, 'hobbies': 'philately'}
    Is there any particular reason to bracket the "hobbies" argument?
    The output certainly looks cleaner this way.

  • @EmereEmmanuel
    @EmereEmmanuel 3 หลายเดือนก่อน

    my answers
    1. {"peak"}
    2. {"mountain" : "peak", "forest" : "jungle", "terrain" : "land"}
    3. {"mountain" : "peak", "terrain" : "land"}

  • @ipranjalrai
    @ipranjalrai 4 ปีที่แล้ว +1

    Good job Sir, keep going.
    Everything is good in the video just try to start with some more basic concept and
    Sir kindly try to smile a bit so, that it can be more interactive and friendlier video it will help you people only.. (hope you mind it positively)

  • @fang_shi_tong
    @fang_shi_tong 3 ปีที่แล้ว +1

    Between 0.05 and 0.11, the instructor refers to strings as a compound data type. This is not correct. I hope this is just a blip because I have found his explanations to be beautifully clear till now.

  • @iyerzzzzz
    @iyerzzzzz 3 ปีที่แล้ว

    I am getting a person1 not defined error

  • @sandipansarkar9211
    @sandipansarkar9211 4 ปีที่แล้ว

    great explanation

  • @MohdIrshad-ko6bd
    @MohdIrshad-ko6bd 2 ปีที่แล้ว

    sir ji ek question btai

  • @aboobakarmohammed1242
    @aboobakarmohammed1242 10 หลายเดือนก่อน

    NO WAY....the captions were shownig "whatsup guys i am punished from programmers" in the beggining of the vid 🤣🤣🤣🤣

  • @iamuniq1081
    @iamuniq1081 2 ปีที่แล้ว

    You explain the dictionary in 8 min op !

  • @ndvorsky
    @ndvorsky 3 ปีที่แล้ว

    So now I know what a dictionary does, why woul I use it?

  • @swarnaakshayastudio
    @swarnaakshayastudio ปีที่แล้ว

    1. peak
    2. {‘mountain’: ‘peak’, ‘forest’: ‘jungle’, ‘terrains’: ‘land’}
    3. {‘mountain’: ‘peak’, ‘terrains’: ‘land’}
    Is the answer..✅

  • @ashrithvicky5366
    @ashrithvicky5366 4 ปีที่แล้ว

    Thanks sir

  • @letstry2854
    @letstry2854 4 ปีที่แล้ว

    Thanks you sir

  • @ujjwalbasnet3968
    @ujjwalbasnet3968 2 ปีที่แล้ว

    are u nepali

  • @_scars_
    @_scars_ 2 ปีที่แล้ว

    bro look like he is programmed to teach

  • @pooja5085
    @pooja5085 4 ปีที่แล้ว

    Thank you sir