Sep-11-2018, 05:50 PM
I am using instructions for an older version of Python, so probably some change.
I'm looking for the equivalent of:
Typing a basic range
>>> range(10)
Then hitting enter to display it on one line
range(10)
[0,1,2,3,4,5,6,7,8,9]
the closest solution I've found online is using a for loop, and displaying each element on a separate line without brackets.
This is probably a very small question to be stuck on, but any help for a newbie is appreciated :)
I'm looking for the equivalent of:
Typing a basic range
>>> range(10)
Then hitting enter to display it on one line
range(10)
[0,1,2,3,4,5,6,7,8,9]
the closest solution I've found online is using a for loop, and displaying each element on a separate line without brackets.
This is probably a very small question to be stuck on, but any help for a newbie is appreciated :)