👍1🔥1
Media is too big
VIEW IN TELEGRAM
Ссылка на сервис → https://gurufy.ru
Please open Telegram to view this post
VIEW IN TELEGRAM
try:
1 / 1
except ZeroDivisionError:
print("A", end="")
else:
print("B", end="")
finally:
print("C", end="")
#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
info = {'name': 'Python', 'version': 3}
info['year'] = 2024
total = len(info) + info['version']
print(total)#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Находки Программиста
Цена: ~15000₽
Рейтинг: 4.8
Отзывов: 1.431
Компьютерный стол с электрической регулировкой высоты позволит работать сидя или стоя одним нажатием кнопки. Просторная столешница 150×78 см легко вместит несколько мониторов, ноутбук и всю периферию. Отличный выбор для программистов и удаленщиков, которые проводят за компьютером весь день и хотят сделать рабочее место более комфортным и эргономичным.
#стол #регулировка
Находки Программиста
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
t = (1, 2, [3, 4])
d = {}
try:
d[t] = "success"
print(d[t])
except TypeError:
print("TypeError")
#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Варианты ответа:
Anonymous Quiz
21%
{'a': 1, 'b': 2, 'c': 4}
55%
{'a': 1, 'b': 3, 'c': 4}
25%
TypeError
Please open Telegram to view this post
VIEW IN TELEGRAM
funcs = []
for i in range(3):
funcs.append(lambda x=i: x)
print([f() for f in funcs])
#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
d = {'a': 1, 'b': 2, 'c': 3}
try:
for k in d:
del d[k]
print(len(d))
except RuntimeError:
print("RuntimeError")#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
class A:
def __init__(self):
self.__x = 1
def get_x(self):
return self.__x
class B(A):
def __init__(self):
super().__init__()
self.__x = 2
b = B()
print(b.get_x())
#Python
Please open Telegram to view this post
VIEW IN TELEGRAM