how to call any integer or string by integer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to call any integer or string by integer?

It's easy to make a list of integer by using range or loop... but can i assign any value to that integers i.e. 1,2,3,... into x,y,z or into 5,6,7 it's possible in dictionary..but how when i have a list full of strings..

30th Jul 2022, 10:26 PM
Rjdp😉
Rjdp😉 - avatar
2 Answers
+ 2
Rjdp😉 , not completely clear what you expect as output. can you give samples or description for input, and how your output should looks like.
31st Jul 2022, 1:21 PM
Lothar
Lothar - avatar