iterator.next() doesn't exist in Python 3. It was replaced with .__next__(). Which version are you actually using?
– wjandrea
1 Answers
-2
votes
Here is a possible solution
a = "hello"
b, c, d = a[0:3]
print(b, c, d)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
iterator.next()
doesn't exist in Python 3. It was replaced with.__next__()
. Which version are you actually using? – wjandrea