From 87f1233d5c0d4b5605dfd290c91a39d4a061afa1 Mon Sep 17 00:00:00 2001 From: Yul Nosova Date: Mon, 15 Jun 2026 20:43:57 +0300 Subject: [PATCH 1/9] Solution mutable immutable task --- app/main.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index f07695b9b..0d8fcbc60 100644 --- a/app/main.py +++ b/app/main.py @@ -7,8 +7,8 @@ "The Lord of the Rings: The Return of the King", "Pulp Fiction", "The Good, the Bad and the Ugly", - "The Matrix", -] + "The Matrix"], + profile_info = ("michel", "michel@gmail.com", "12345678") marks = { "John": 4, @@ -16,4 +16,16 @@ } collection_of_coins = {1, 2, 25} -# write your code here +sorted_variables = {"mutable": [ ], "immutable": [ ]} + + +sorted_variables ["immutable"].append (lucky_number), +sorted_variables ["immutable"].append (pi), +sorted_variables ["immutable"].append (one_is_a_prime_number), +sorted_variables ["immutable"].append (name), +sorted_variables ["immutable"].append (profile_info), +sorted_variables ["mutable"].append (marks), +sorted_variables ["mutable"].append (collection_of_coins), +sorted_variables ["mutable"].append (my_favourite_films) + +print (sorted_variables) From 33dc722fe5780faf9db3b831a3386adb5dcc7efa Mon Sep 17 00:00:00 2001 From: Yul Nosova Date: Mon, 15 Jun 2026 22:31:11 +0300 Subject: [PATCH 2/9] Changed Matrix as in comment --- app/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 0d8fcbc60..e25dff383 100644 --- a/app/main.py +++ b/app/main.py @@ -7,8 +7,7 @@ "The Lord of the Rings: The Return of the King", "Pulp Fiction", "The Good, the Bad and the Ugly", - "The Matrix"], - + "The Matrix"] profile_info = ("michel", "michel@gmail.com", "12345678") marks = { "John": 4, From 25544184787a83bb24bb0d807ee4f79979bad452 Mon Sep 17 00:00:00 2001 From: Yul Nosova Date: Mon, 15 Jun 2026 22:55:19 +0300 Subject: [PATCH 3/9] removed white spaces --- app/__pycache__/main.cpython-314.pyc | Bin 0 -> 1310 bytes app/main.py | 2 -- tests/__pycache__/__init__.cpython-314.pyc | Bin 0 -> 191 bytes .../test_main.cpython-314-pytest-9.1.0.pyc | Bin 0 -> 12701 bytes 4 files changed, 2 deletions(-) create mode 100644 app/__pycache__/main.cpython-314.pyc create mode 100644 tests/__pycache__/__init__.cpython-314.pyc create mode 100644 tests/__pycache__/test_main.cpython-314-pytest-9.1.0.pyc diff --git a/app/__pycache__/main.cpython-314.pyc b/app/__pycache__/main.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e2f319a0ea2cc7e7ea485654ae174b650c915e4a GIT binary patch literal 1310 zcmb7DO-~a+7=CxV+b>qF1q6*i2_dHPArBz9lR|9uM8XN(&#TIBt4e}YG zVc=YNC9H-9Z!{JLSZqDT4YUGdd>=nXg&z1Xh0wG@Y+4a$S|MLh1pnE2uxUl8X@%5K zaBri%+~3o&8t#LnVn+A_$o6dgdiA9{GB?jcs+rE|#9-1>oO4)k36ZRcS;)>)ea%8F zV%jJ0MN%$yzRsbE;X@J9P%sAFfkH1lb{@{rjzxi6F#jXnkP=9 zu)qsNWifBLiFq@9EbjJaJ;B%*JeEGvjfCzP$9Oqw6^c>6{#>WTe3uNcpv{krtYYlX zcP?w|rZt?#HVfaqH##;xF*!BMn}mJ;q3w%)y3SLwg(+4(y;0DdyuF496J3+FV+U!b zr|FtYOdB;ylB3&*#qENY(Km6Pm=tLl)3QCLxCC>=MNS4Y+1AO1$6C|ave0oa8qR2G zY&sr`d6-aSXq!4QeJec{)Lj=j29x<-4*dj2{8Yf+Jf2Q1dx&@`2YYxkwOH^k#9kzL zoiFL}G0kD;p?)P^ zQtEP~B-T5-D$rgJ#Y)nlC|`?LAby}gY`UcENzv_xbxGOQ59B~ZEXjvq=;*CL>t0*e zN3Xo_xvkPVQGwV&5QM8A26mu(7y7HvUw&VMu_}z$A$FD}HMm`cf%9zT)=Ui^RAKf! zU8Xe{tisR*_RPY`9k{s*eO2fyFV|q83WNUKQ?}ASRfGFgn7&9)euJqWAXh>i-=ULq Ha#wx>6oWQj literal 0 HcmV?d00001 diff --git a/app/main.py b/app/main.py index e25dff383..c3668ae8e 100644 --- a/app/main.py +++ b/app/main.py @@ -16,8 +16,6 @@ collection_of_coins = {1, 2, 25} sorted_variables = {"mutable": [ ], "immutable": [ ]} - - sorted_variables ["immutable"].append (lucky_number), sorted_variables ["immutable"].append (pi), sorted_variables ["immutable"].append (one_is_a_prime_number), diff --git a/tests/__pycache__/__init__.cpython-314.pyc b/tests/__pycache__/__init__.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c4ccd660c772bfef741ef1f218e8fbd053e39f18 GIT binary patch literal 191 zcmdPq_I|p@<2{{|u7672|9b6Iz^F zR2-9+Uz}eS6Hu9)kyw-)P?VpQnp{#0PO4oIE6_5KbBaNXPt1&rj77{q764jFGt&S7 literal 0 HcmV?d00001 diff --git a/tests/__pycache__/test_main.cpython-314-pytest-9.1.0.pyc b/tests/__pycache__/test_main.cpython-314-pytest-9.1.0.pyc new file mode 100644 index 0000000000000000000000000000000000000000..76755fa1055a5c453a680ca492d377d4cd23f6c1 GIT binary patch literal 12701 zcmeHN|8E<|mEYypU5X+piLw-1wrIZ>C;m!z@d*o~uZQp!bCGnBZJXp>xO zmU1Ju1svQRE(HSA_tWKypqD!oI2UMv=BK8;pAPLGK-o>LZjGLS7BGwhuCnD;Kz_RS zW_EU$G%d+(eZ8PviL>+d&6_u~^Lg*hJQHdT2=F9-J9zOeh|ObyKOr-+c}5h3E5Zdq z5nmC?B7M6~yH{M@!f8+0+s#URWgji^m;LlDmE|w{rlXvg{hscy<2aW!N;KES0YM_(yFv6ZlD-_O&oS9?TSZ{E_f9Af_u;fY44Dr>?uIWfMoR- zaP-&w82usN9S**m9CSiTutO+^m1YPdN(jOhMeGscop*6$=Zxmd8IsG)<<)dCQ&5f8 z!fJXUb6HyB1rujPvRJWPu9G(*e{zs-IK zuL!eN!L%t*D+3}Wan{SzGZ8L= zFN&+*t{^CG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}iDC3qWtC5IOh zvvF^w^Nl4n_WDxhEBaEVcqyi+S+!8YyN{J)Sn_#|WMkSw3@|yS>voXw8)ba`` z@`AHaPzg@2+;?H>5;zcw}^JeBwEj!(BAo@8T)yT|795OLXLP$aI`^ zkW^xnvMs21t0D2*qST{oJe6kmO9$AO1LGbbD*f0D*~&8fW*)n;;$uz79Q18S;De@q zZR_ePxnwlKJrLF@0bRB)Z4;yIl9W+~UOM zeu!;gY$I4#HF{gxzb-}BrM`7(-|b-RzRTAf+VIM9U?VEXC&hI+a&_$e#QRIv#A@r) zRq2^^`M|#g;Jwk)ie0or7yWK=YV#PxHZb;37r>2-RfAA~)KyboBoV4!tl_ literal 0 HcmV?d00001 From 469225398f1b7ed2bbfb33b4d27f0d874588727b Mon Sep 17 00:00:00 2001 From: Yul Nosova Date: Mon, 15 Jun 2026 23:01:40 +0300 Subject: [PATCH 4/9] new change remove --- app/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/main.py b/app/main.py index c3668ae8e..a495f0e05 100644 --- a/app/main.py +++ b/app/main.py @@ -24,5 +24,4 @@ sorted_variables ["mutable"].append (marks), sorted_variables ["mutable"].append (collection_of_coins), sorted_variables ["mutable"].append (my_favourite_films) - print (sorted_variables) From 3fd12d2ef11542b03154c4ccac5eb063a0079cd3 Mon Sep 17 00:00:00 2001 From: Yul Nosova Date: Mon, 15 Jun 2026 23:06:26 +0300 Subject: [PATCH 5/9] new new mist removed --- app/main.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/app/main.py b/app/main.py index a495f0e05..b9174d256 100644 --- a/app/main.py +++ b/app/main.py @@ -16,12 +16,15 @@ collection_of_coins = {1, 2, 25} sorted_variables = {"mutable": [ ], "immutable": [ ]} -sorted_variables ["immutable"].append (lucky_number), -sorted_variables ["immutable"].append (pi), -sorted_variables ["immutable"].append (one_is_a_prime_number), -sorted_variables ["immutable"].append (name), -sorted_variables ["immutable"].append (profile_info), -sorted_variables ["mutable"].append (marks), -sorted_variables ["mutable"].append (collection_of_coins), + +sorted_variables ["immutable"].append (lucky_number) +sorted_variables ["immutable"].append (pi) +sorted_variables ["immutable"].append (one_is_a_prime_number) +sorted_variables ["immutable"].append (name) +sorted_variables ["immutable"].append (profile_info) + +sorted_variables ["mutable"].append (marks) +sorted_variables ["mutable"].append (collection_of_coins) sorted_variables ["mutable"].append (my_favourite_films) + print (sorted_variables) From da9192dea2b8508ff814cc972e5acc424baf090b Mon Sep 17 00:00:00 2001 From: Yul Nosova Date: Mon, 15 Jun 2026 23:13:09 +0300 Subject: [PATCH 6/9] Removing whitespaces new --- app/main.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/main.py b/app/main.py index b9174d256..264913a61 100644 --- a/app/main.py +++ b/app/main.py @@ -17,14 +17,14 @@ sorted_variables = {"mutable": [ ], "immutable": [ ]} -sorted_variables ["immutable"].append (lucky_number) -sorted_variables ["immutable"].append (pi) -sorted_variables ["immutable"].append (one_is_a_prime_number) -sorted_variables ["immutable"].append (name) -sorted_variables ["immutable"].append (profile_info) +sorted_variables ["immutable"].append(lucky_number) +sorted_variables ["immutable"].append(pi) +sorted_variables ["immutable"].append(one_is_a_prime_number) +sorted_variables ["immutable"].append(name) +sorted_variables ["immutable"].append(profile_info) -sorted_variables ["mutable"].append (marks) -sorted_variables ["mutable"].append (collection_of_coins) -sorted_variables ["mutable"].append (my_favourite_films) +sorted_variables ["mutable"].append(marks) +sorted_variables ["mutable"].append(collection_of_coins) +sorted_variables ["mutable"].append(my_favourite_films) -print (sorted_variables) +print(sorted_variables) From 6a54c896c6a5d792e31ccd4eb0d7e5713f89d144 Mon Sep 17 00:00:00 2001 From: Yul Nosova Date: Mon, 15 Jun 2026 23:18:55 +0300 Subject: [PATCH 7/9] removing whitespaces --- app/main.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/main.py b/app/main.py index 264913a61..a0200980c 100644 --- a/app/main.py +++ b/app/main.py @@ -17,14 +17,14 @@ sorted_variables = {"mutable": [ ], "immutable": [ ]} -sorted_variables ["immutable"].append(lucky_number) -sorted_variables ["immutable"].append(pi) -sorted_variables ["immutable"].append(one_is_a_prime_number) -sorted_variables ["immutable"].append(name) -sorted_variables ["immutable"].append(profile_info) +sorted_variables["immutable"].append(lucky_number) +sorted_variables["immutable"].append(pi) +sorted_variables["immutable"].append(one_is_a_prime_number) +sorted_variables["immutable"].append(name) +sorted_variables["immutable"].append(profile_info) -sorted_variables ["mutable"].append(marks) -sorted_variables ["mutable"].append(collection_of_coins) -sorted_variables ["mutable"].append(my_favourite_films) +sorted_variables["mutable"].append(marks) +sorted_variables["mutable"].append(collection_of_coins) +sorted_variables["mutable"].append(my_favourite_films) print(sorted_variables) From 3d5e816abbb3987995a2426151f4f12c7ebc2ea3 Mon Sep 17 00:00:00 2001 From: Yul Nosova Date: Tue, 16 Jun 2026 18:13:01 +0300 Subject: [PATCH 8/9] new bag fixes --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index a0200980c..2e6837516 100644 --- a/app/main.py +++ b/app/main.py @@ -15,7 +15,7 @@ } collection_of_coins = {1, 2, 25} -sorted_variables = {"mutable": [ ], "immutable": [ ]} +sorted_variables = {"mutable":[], "immutable":[]} sorted_variables["immutable"].append(lucky_number) sorted_variables["immutable"].append(pi) From 489a7cd857131dc46ca5ca98b33196061d0e7bde Mon Sep 17 00:00:00 2001 From: Yul Nosova Date: Tue, 16 Jun 2026 22:38:40 +0300 Subject: [PATCH 9/9] new new bag fixes --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 2e6837516..e2a2bdb5c 100644 --- a/app/main.py +++ b/app/main.py @@ -15,7 +15,7 @@ } collection_of_coins = {1, 2, 25} -sorted_variables = {"mutable":[], "immutable":[]} +sorted_variables = {"mutable": [], "immutable": []} sorted_variables["immutable"].append(lucky_number) sorted_variables["immutable"].append(pi)