+ 1

How choose first element in list?

Through the def function

17th Jul 2022, 2:03 PM
Vladyslav
Vladyslav - avatar
4 Respostas
+ 3
list[0]
17th Jul 2022, 2:10 PM
Jayakrishna 🇮🇳
+ 3
Try it yourself first. If something went wrong then post your attempt here.. implement function as taking list as argument and return list first element which is at index 0. Just 2 lines of code.. Hope it helps..
17th Jul 2022, 2:44 PM
Jayakrishna 🇮🇳
+ 1
Thank you, but wat about def function?
17th Jul 2022, 2:21 PM
Vladyslav
Vladyslav - avatar
+ 1
Thank you
17th Jul 2022, 3:18 PM
Vladyslav
Vladyslav - avatar