We help IT Professionals succeed at work.

python error - set

ittechlab
ittechlab asked
on
223 Views
Last Modified: 2017-03-09
>>> 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'
Comment
Watch Question

Topic Advisor
CERTIFIED EXPERT
Most Valuable Expert 2016
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Suhas .Senior QA Manager
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION