Junior Python School
707 subscribers
92 photos
29 links
Surprising the python community with pure python ๐Ÿ”

Moving channel from Russian to English.


Enthusiastic reviews can be written to @pythonjuniorschoolacc โค๏ธ
Download Telegram
๐Ÿ“ข๐Ÿ“ขNEW QUIZ โ˜‘๏ธ

Have you ever used context managers from contextlibโ”โ”โ”
Try it!๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ
A little typing never hurts, does it? ๐Ÿฆ†
Frozen as set ๐ŸงŠ๐ŸงŠ๐ŸงŠ
Solve the previous quiz before ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿง‘โ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป
โœ๏ธ pyc - a compiler for Python bytecode, compiling .py code into .pyc code

Which module from python built-in library is used for reading and writing .pyc files?
Anonymous Quiz
43%
pickle
19%
shelve
22%
marshal
15%
copyreg
Have you already tried to use inspect?๐Ÿ™ˆ
What will be output?
Anonymous Quiz
24%
0
26%
1
29%
2
12%
3
9%
5
0 or 5 and 6 or 0
Anonymous Quiz
27%
False
48%
True
12%
0
6%
5
7%
6
Junior Python School pinned ยซ3 and 7 or 0 and 1ยป
How to execute module content as the __main__ module? ๐Ÿ–ฅ

For example, to run code in doctest module ๐Ÿ“„
Anonymous Quiz
10%
It is not possible.
40%
python <module-name>
13%
<module-name>
37%
python -m <module-name>
What should be written instead of EXPRESSION to make True the last expression?
What should be written instead of EXPRESSION?
Anonymous Quiz
20%
(k, k is None)
34%
(k is not None, k)
24%
(k is None, k)
17%
k
6%
-k