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
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
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
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
Well explained
Thanks so much 😊🙏
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
Thankyou so much. The session was very educatitve
You're always welcome☺
Amazing
Thanks for your feedback 🙂
Thanks so much🤩
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)
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
Excellent job 😃
@@mauradappa4417 You'e doing a good job
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
That's, Superb 🔥🔥🔥
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
You're on track, Chief