Заметки Питониста
14.7K subscribers
3.37K photos
18 videos
1.81K links
Все что связано с Python, уже в наших заметках.

Ссылка: @Portal_v_IT

Сотрудничество: @oleginc
Download Telegram
Please open Telegram to view this post
VIEW IN TELEGRAM
Варианты ответа:
Anonymous Quiz
54%
True
33%
False
13%
None
📣 Мышка вертикальная беспроводная

Цена: ~1900₽
Рейтинг: 4.8😀
Отзывов: 3.552 💬

🖱 Заказать

Вертикальная беспроводная мышь с поддержкой Bluetooth 5.2, Bluetooth 3.0 и 2.4 ГГц. Эргономичная форма помогает снизить нагрузку на кисть во время долгой работы за компьютером, а возможность подключения к нескольким устройствам удобна для тех, кто переключается между рабочим ноутбуком, домашним ПК и планшетом.

#мышь #вертикальная

Больше товаров
- Находки Программиста
Please open Telegram to view this post
VIEW IN TELEGRAM
x = "global"
res = [x for x in ["local", "scope"]]
print(x)


💕 Наш уютный чатик

#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Варианты ответа:
Anonymous Quiz
26%
scope
26%
local
49%
global
data = {'a': [1, 2], 'b': [3, 4]}
data['c'] = data['a'] + data['b']
data['a'].append(5)
print(len(data['c']))


💕 Наш уютный чатик

#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Варианты ответа:
Anonymous Quiz
52%
4
45%
5
3%
6
fruits = ['apple', 'banana', 'cherry']
fruits[1] = fruits[0] + fruits[2]
print(len(fruits[1]))


💕 Наш уютный чатик

#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Варианты ответа:
Anonymous Quiz
64%
11
27%
6
9%
12
🥴7🤨6🤔2
from itertools import islice

def infinite_seq():
n = 1
while True:
yield n
n *= 2

gen = infinite_seq()
result = list(islice(gen, 5))
print(sum(result))


💕 Наш уютный чатик

#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Варианты ответа:
Anonymous Quiz
52%
31
35%
15
13%
32
lst = [x for x in range(10) if x % 2 == 0 if x % 3 == 0]
print(lst)


💕 Наш уютный чатик

#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Варианты ответа:
Anonymous Quiz
46%
[0, 6]
32%
[0, 2, 3, 4, 6, 8, 9]
22%
SyntaxError
for i in range(3):
if i == 1:
continue
print(i, end="")


💕 Наш уютный чатик

#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
Варианты ответа:
Anonymous Quiz
19%
012
71%
02
10%
0
❤1
a, *b, c = [1, 2, 3, 4, 5]
print(b)


💕 Наш уютный чатик

#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
Варианты ответа:
Anonymous Quiz
49%
[2, 3, 4]
45%
(2, 3, 4)
7%
[2, 3]
lst = [x for x in range(10) if x % 2 == 0 if x % 3 == 0]
print(lst)


💕 Наш уютный чатик

#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Варианты ответа:
Anonymous Quiz
55%
[0, 6]
30%
[0, 2, 3, 4, 6, 8, 9]
15%
SyntaxError
n = 3
while n > 0:
n -= 1
if n == 1:
break
else:
print("A", end=" ")
print(n)


💕 Наш уютный чатик

#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Варианты ответа:
Anonymous Quiz
48%
A 1
22%
0
30%
1