This commit is contained in:
2025-12-18 14:49:28 +01:00
parent bb3f160bb2
commit 4fdc85712a
3 changed files with 28 additions and 3 deletions

View File

@@ -6,5 +6,6 @@ komputer2 = Computer()
print(komputer1)
print(dir(komputer1))
print('--------------------------------')
print(komputer2)
print(dir(komputer2))

View File

@@ -5,4 +5,16 @@ def liczymy(liczba):
print(liczymy(100))
liczba = 200
print("A", id(liczba))
print(liczymy(120))
print(liczymy(liczba))
liczb_2 = 100
print(liczymy(liczb_2))
# id(liczba)=11758856
# 330
# A 11762056
# id(liczba)=11762056
# 630
# id(liczba)=11758856
# 330

View File

@@ -0,0 +1,12 @@
imie = "Adam"
lista = [3, 4, 6]
def wypisz():
imie = "Piotr"
inna_lista = lista
jeszcze_inna_lista = lista.copy()
lista.append("Co to?")
print(f"Hej - {imie} - {lista=} - {inna_lista}")
wypisz()
print(f"Witaj - {imie} - {lista=}")