Imagine I have 2 iterables of any types let say for example list and string:
a = [1, 2, 3]
b = "abc"
Is there a python friendly concise way to iterate over a and b sequentially (not in parallel like with zip) without tricking (the idea here is that a and b can be anything we just know they are iterables)
So no such thing as:
for i in a + list(b):
Ideally I would have something:
for i in something(a, b):
print(i)
that would be equivalent to doing
for i in a:
print(i)
for i in b:
print(i)