while examples

This commit is contained in:
Mert Gör 🇹🇷 2023-05-20 07:35:20 +03:00
parent faabeabea5
commit 2ab15cf61b
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
3 changed files with 15 additions and 0 deletions

4
while-1.py Normal file
View File

@ -0,0 +1,4 @@
i = 0
while i < 10:
print(i)
i += 1

5
while-2.py Normal file
View File

@ -0,0 +1,5 @@
i = 0
while i < 10:
print(i, end = ' ')
i += 1
print()

6
while-3.py Normal file
View File

@ -0,0 +1,6 @@
i = 0
while i < 0:
print(i)
i += 1
else:
print('son')