I am out of trial and error again Lists
Seymore4Head at Hotmail.invalid
Fri Oct 24 22:58:00 CEST 2014
On Fri, 24 Oct 2014 20:37:31 +0000 (UTC), Denis McMahon
<denismfmcmahon at gmail.com> wrote:
>On Fri, 24 Oct 2014 10:38:31 -0400, Seymore4Head wrote:
>> I tried list(range(10)
>This is missing a ")"
>It probably sat there waiting for you to finish the line.
>You have two "(" in the line, you need two ")" to match them.
>> I thought that would work in Python 3. It
>It does if you enter it properly.
>Note that that has three "(" and three ")" on the line.
I make lots of typing mistakes. It is not that. Did you see the short
example I posted?
for x in name:
if x in range(10):
if x in str(range(10)):
print ("String range",(x))
It doesn't throw an error but it doesn't print what you would expect.
More information about the Python-list