Link to home
Start Free TrialLog in
Avatar of ittechlab
ittechlabFlag for Canada

asked on

python error - set

>>> s1 = set([1,2,3,4,5,6])
>>> for ele in s1:
... print(ele)
  File "<stdin>", line 2
    print(ele)
        ^
IndentationError: expected an indented block
>>>
>>> s1 = set([1,2,3,4,5,6])
>>> for ele in s1:
... print ele
  File "<stdin>", line 2
    print ele
        ^
IndentationError: Missing parentheses in call to 'print'
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial