Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
No problem 😄 So you can use some dictionnaries to do that... You can use 2 lists too. perfumes = {"channel":406,"Boss":543,...} OR name = ["channel","Boss","Tom Ford",...] numbers = [406,543,342,...]
16th Nov 2020, 9:10 PM
KAWOTTE
KAWOTTE - avatar
+ 1
you can use a dictionary for that for example perfumes = {"channel":406, "Boss":543} # adding perfumes perfumes["Tom Ford"] = 342 # reading perfumes print(perfumes["channel"]) >>> 406
18th Nov 2020, 7:00 AM
Shen Bapiro
Shen Bapiro - avatar