Найти - Пользователи
Полная версия: Синтаксис в квадратных строках
Начало » Центр помощи » Синтаксис в квадратных строках
1
Gustman
a, b, c = [int(input(i))**2 for i in ['a = ', 'b = ', 'c = ']]
print("%d + %d + %d = %d" % (a, b, c, a+b+c))
Часто вижу ответы в квадратных скобках. Хотел узнать где можно почитать об этом?
GreyZmeem
List Comprehensions
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB