Skip to content

Commit 6800e46

Browse files
JackobJackobronreiter
authored andcommitted
Dodane rozwiązanie
1 parent 704bd3a commit 6800e46

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tutorials/learnpython.org/pl/Podstawowe operatory.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,18 @@ Doskonale!
8080

8181
Solution
8282
--------
83+
x = object()
84+
y = object()
85+
86+
x_tab = [x] * 10
87+
y_tab = [y] * 10
88+
duza_tab = x_tab + y_tab
89+
90+
print ("x_tab zawiera %d obiektow" % len(x_tab))
91+
print ("y_tab zawiera %d obiektow" % len(y_tab))
92+
print ("duza_tab zawiera %d obiektow" % len(duza_tab))
93+
94+
if x_tab.count(x) == 10 and y_tab.count(y) == 10:
95+
print ("Prawie zrobione...")
96+
if duza_tab.count(x) == 10 and duza_tab.count(y) == 10:
97+
print ("Doskonale!")

0 commit comments

Comments
 (0)