0

how can I print a series of print(..)?

In sololearn, when you type number = 3 things = ["string", 0, [1, 2, number], 4.56] print(things[1]) print(things[2]) print(things[2][2]) then it says that you get the result >>> 0 [1, 2, 3] 3 >>> but when I use the python and type, I got the result like this. number=3 >>> things=["string",0,[1,2,number],4.56] >>> print(things[1]) 0 >>> print(things[2]) [1, 2, 3] >>> print(things[2][2]) 3 >>> help me...

13th Sep 2016, 5:34 AM
원준희
원준희 - avatar
2 Respuestas
+ 1
In both cases, the results are the same. I fail to see your problem.
13th Sep 2016, 9:09 AM
Zen
Zen - avatar
+ 1
You are using console... Press Ctrl+N (after opening IDLE) and write your code and run it (by pressing F5)... Hope you get it if not let me know :D
13th Sep 2016, 11:32 AM
yancy
yancy - avatar