Problem with a list | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Problem with a list

Guys, I need your help. The only thing I wanna output "x" . Please help. list_ = [ ["x", "y"], "m", "r"] print( list[ 0[0] ] ) #?!

29th Oct 2020, 5:55 PM
Андрей Пермяков
Андрей Пермяков - avatar
4 Answers
+ 5
print(list_[0][0]) # x
29th Oct 2020, 5:59 PM
Russ
Russ - avatar
+ 2
Russ Thank you, Master)
29th Oct 2020, 6:34 PM
Андрей Пермяков
Андрей Пермяков - avatar
+ 1
Jan Markus, sorry, I'm too lazy, I translated this)
29th Oct 2020, 6:31 PM
Андрей Пермяков
Андрей Пермяков - avatar
+ 1
Jan Markus I want to output "x"
29th Oct 2020, 6:31 PM
Андрей Пермяков
Андрей Пермяков - avatar