Python Tutorial for Beginners #4 | How to Loop over Multiple Lists
Channel:
Subscribers:
1,420
Published on ● Video Link: https://www.youtube.com/watch?v=MLRxQ39kqHs
Python Tutorial for Beginners 2023:
How to loop over multiple lists in Python Programming Language.
In this short, I will demonstrate to you the simple way to achieve it.
Using the zip_longest method from python built-in itertools module.
from itertools import zip_longest
a = [1,2,3,4]
b = ['#MANC','#ARS','#MAN']
for a1,b1 in zip_longest(a,b):
print(a1, b1)
For more videos about
Whiles Loops
For loops
Click here https://www.youtube.com/channel/UCY2ELJdzCy1oehevQIN73mA
Other Videos By Amo Procedures
Tags:
python
python programming
lists in python
unique values
learning python
coding in python
coding for beginners
writing python code
programming
coding
forloops in python
if statement
python tutorial
python for beginners
fastapi
sql
sqlalchemy
c#
.netcore
aspnet