0
Hello, will someone explain please?
a = [1, 2, 3] b = (4, 5, 6) c = {7:6, 5:4, 3:2, 1:0} d = a, b, c print (d[2] [3])
4 odpowiedzi
+ 6
a = [1, 2, 3]
b = (4, 5, 6)
c = {7:6, 5:4, 3:2, 1:0}
d = a, b, c # will create a tuple having a, b, c values
print(d[2][3]) #d[2] will point to dictionary c and [3] is key, means c[3] which returns 2
+ 1
Thank you
0
Btw. Tags are used to give some Quick hints on the topic of your question.
This typically defines the Language and for example a more specific topic for example "python" and "dictionary".
It is useful for others to quickly See, if they have knowledge on the defined topic and hence are able to help - or not...
0
I have a lot of studying to do