This commit is contained in:
2025-12-16 11:48:08 +01:00
parent 2c75565fd5
commit d08b31db8f
2 changed files with 50 additions and 0 deletions

23
dzien_02/skrypt_05.py Normal file
View File

@@ -0,0 +1,23 @@
nasze_dane = ( 23, 44, 55, 44, 34, 76, 87)
for element in nasze_dane:
if type(element) is str:
break
wynik = round(element / 6,3)
print(f"Wynik dzielenia to {wynik}")
else:
print("Wszystko ok")
##
nasze_dane = ( 23, 44, 55, 44,"A", 34, 76, 87)
for element in nasze_dane:
if type(element) is str:
continue
wynik = element / 6
print(f"Wynik dzielenia to {wynik}")
else:
print("Wszystko ok, nawet gdy continue")