Hello, will someone explain please? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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])

23rd Jun 2023, 2:11 PM
Oscar
4 Answers
+ 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
23rd Jun 2023, 2:29 PM
Jayakrishna 🇮🇳
+ 1
Thank you
25th Jun 2023, 2:27 AM
Oscar
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...
23rd Jun 2023, 7:25 PM
G B
G B - avatar
0
I have a lot of studying to do
25th Jun 2023, 2:30 AM
Oscar