Nested Function in Python | Tutorial 26 | Python in Urdu | Hindi | Python Tutorial | Ali Code

preview_player
Показать описание
#learnpython #pythontutorial #pythoninurdu #pythoninhindi #alicode
Nested Function in Python | Python Tutorial in Urdu | Hindi | Python For Beginners | Ali Code

In Python programming language there are two types of loops which are for loop and while loop. Using these loops we can create nested loops in Python. Nested loops mean loops inside a loop. For example, while loop inside the for loop, for loop inside the for loop, etc.

Python Nested Loops Syntax:

Outer_loop Expression:

Inner_loop Expression:

Statement ...

x = [1, 2]
y = [4, 5]

for i in x:
for j in y:
print(i, j)

Рекомендации по теме