- 1

what is the result if this code num=[5,4,3,2,1] print(nums(1))

4th Sep 2017, 6:13 AM
sivapriya
3 Answers
+ 2
You will get a syntax error. Lists are not callable as functions. But if you write instead print(num[1]) the answer will be 4.
27th Sep 2017, 6:52 AM
Paul Ungureanu
Paul Ungureanu - avatar
+ 1
4
8th Apr 2022, 8:52 PM
Michael Storay
- 1
it is 2
4th Mar 2020, 2:03 PM
Sorifa Begum
Sorifa Begum - avatar