Sobes.tech
Middle+

Calculez en une seule ligne les carrés des nombres de 0 à 9

sobes.tech IA

Réponse de l'IA

python squares = [x**2 for x in range(10)] print(squares)

Этот однострочник создаёт список квадратов чисел от 0 до 9 с помощью list comprehension в Python.