Pleaee help me , l am a beginner.this is my first programmino class. What is the result of this code? | Sololearn: Learn to code for FREE!
- 1

Pleaee help me , l am a beginner.this is my first programmino class. What is the result of this code?

nums=[5, 4, 3, 2 1] print (nums[1])

30th Mar 2017, 6:50 AM
Giuseppe Reho
Giuseppe Reho - avatar
6 odpowiedzi
+ 12
you could have tested in code playground
30th Mar 2017, 8:13 AM
Ahri Fox
Ahri Fox - avatar
+ 2
syntax error lol but result of this: nums=[5, 4, 3, 2, 1] print (nums[1]) would be 4
30th Mar 2017, 6:53 AM
Ivan Kerepčić
Ivan Kerepčić - avatar
+ 1
it prints `` 4 ``
30th Mar 2017, 9:53 AM
amir mahmoodi
amir mahmoodi - avatar
+ 1
You can still test this answer in code playground. That's the best way to learn this language.
2nd Apr 2017, 11:11 PM
Clipse
Clipse - avatar
0
the answer would be 4 as not the first number as that would be place 0 and place 1 would be 4
30th Mar 2017, 11:09 AM
tob2013
tob2013 - avatar
0
Thank You all anyhow
1st Apr 2017, 12:10 PM
Giuseppe Reho
Giuseppe Reho - avatar