last update python

This commit is contained in:
Ionel Andrei Cataon
2026-01-29 18:05:15 +02:00
parent 80d368e4c5
commit 2d3f686918
4 changed files with 42 additions and 11 deletions

View File

@@ -0,0 +1,18 @@
#!/home/andrei/it_school/bin/python3
x = 0
while x < 10:
if x == 5:
print("Am ajuns la 5, iesim din bucla.")
break
print("Valoarea lui x este:", x)
x += 1
y = 0
while y < 10:
y += 1
if y == 2:
print("Sărim peste valoarea 2.")
continue
print("Valoarea lui y este:", y)
print("Am iesit din bucla.")