0

Troubleshoot Please

Can someone help troubleshoot? input>> numbers = [10,20,30,40,50] print(numbers[1],[2],[3]) output>> 20 [2] [3] Why do I get this output?

7th Dec 2017, 4:45 PM
Eric
1 Respuesta
- 1
So you want to print 20 30 40? If thats so, try: numbers = [10,20,30,40,50] print(numbers[1],numbers[2],numbers[3])
8th Dec 2017, 2:43 PM
Hanz
Hanz - avatar