Python Variables and Data Structures Explained | Python Programming for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024

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

  • @akindeleolawale
    @akindeleolawale 2 หลายเดือนก่อน +1

    Well explained

    • @TechWithJaja
      @TechWithJaja  2 หลายเดือนก่อน

      Thanks so much 😊🙏

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

    Vowel = {'a', 'e' , 'i' , 'o' , 'u'}
    print(type(Vowel))
    print(Vowel)
    Colours = {"red" : 100, "green" : 200, "blue" : 300}
    print(type(Colours))
    print(Colours)
    Things_i_want_to_buy = ["Rice" , "Beans" ,"Plaintain" , "Yam" , "Indomie"]
    print(type(Things_i_want_to_buy))
    print(Things_i_want_to_buy)
    I will use list because i will modified the item i would like to buy later

  • @MuhammadUmar-n5j
    @MuhammadUmar-n5j 2 หลายเดือนก่อน

    Thankyou so much. The session was very educatitve

    • @TechWithJaja
      @TechWithJaja  2 หลายเดือนก่อน

      You're always welcome☺

  • @mauradappa4417
    @mauradappa4417 2 หลายเดือนก่อน

    Amazing

    • @TechWithJaja
      @TechWithJaja  2 หลายเดือนก่อน

      Thanks for your feedback 🙂

    • @TechWithJaja
      @TechWithJaja  2 หลายเดือนก่อน

      Thanks so much🤩

  • @mauradappa4417
    @mauradappa4417 2 หลายเดือนก่อน +2

    vowels={'a','e','i','o','u'}
    print(type(vowels))
    print(vowels)
    snippet={'red':100,'green':200,'blue':300}
    print(type(snippet))
    print(snippet)
    list_of_things_i_want_to_buy=['''pepper', 2'cups_of_rice','onions''']
    print(type(list_of_things_i_want_to_buy))
    print(list_of_things_i_want_to_buy)

    • @mauradappa4417
      @mauradappa4417 2 หลายเดือนก่อน

      Questions 4...I'd choose a list because I have the liberty of repeating elements as a list accommodates any type of mixed data without it being automatically removed

    • @TechWithJaja
      @TechWithJaja  2 หลายเดือนก่อน

      Excellent job 😃

    • @TechWithJaja
      @TechWithJaja  2 หลายเดือนก่อน

      @@mauradappa4417 You'e doing a good job

  • @victorchiye
    @victorchiye 2 หลายเดือนก่อน

    1.
    Vowel= {"a", "e", "I", "o", "u"}
    print(Vowel)
    print(type(Vowel))
    2.
    colors= {"red": 100, "green":200, "blue": 300}
    print(colors)
    print(type(colors))
    print(len(colors))
    3.
    things_i_want_to_purchase["rice", "beans", "yam", "groundnut", "cucumber", "watermelon"]
    print(type(things_i_want_to_purchase))
    4.
    I will prefer using a list if I want my data to be modified.
    Example, if I have a list of things I wish to purchase, I could remember one or two things I could add in the list later. But if it has been modified, I won't be able to add it again to the list

    • @TechWithJaja
      @TechWithJaja  2 หลายเดือนก่อน

      That's, Superb 🔥🔥🔥

  • @Ralphie_1376
    @Ralphie_1376 2 หลายเดือนก่อน

    vowel = {"a", "e", "i", "o", "u"}
    print(type(vowel))
    print(vowel)
    colors = {'red':100, 'green':200, 'blue':300}
    print(type(colors))
    print(colors)
    PurchaseList = ["Bread", "Eggs", "Beverages", "Yam", "Salt"]
    print(type(PurchaseList))
    print(PurchaseList)
    I would use a list instead of a set if I want to create a list of things I know I will modify later, which are not unique. Like a list of things to buy that can change later and could contain duplicates

    • @TechWithJaja
      @TechWithJaja  2 หลายเดือนก่อน

      You're on track, Chief