List Of Squares (1 To 10)

#1 · 1 of 50Free sample
Question

List Of Squares (1 To 10)

Generate a list containing squares of integers from 1 through 10 and print it. Expected output: [1, 4, 9, 16, 25, 36, 49, 64, 81, 100].
solution.py
Loading editor…
Sign up to unlock

The reference answer is one click away.

Free account unlocks the reference answer, the explanation, and the GPT tutor on every exercise in the library.

  • Reference answer + explanation revealed after each attempt
  • GPT tutor for every problem
  • Progress saved on the platform
  • 1,598 graded exercises
  • Free forever — no credit card
Sign up to unlock

The reference answer is one click away.

Free account unlocks the reference answer, the explanation, and the GPT tutor on every exercise in the library.

  • Reference answer + explanation revealed after each attempt
  • GPT tutor for every problem
  • Progress saved on the platform
  • 1,598 graded exercises
  • Free forever — no credit card
All exercises in Python: Comprehensions (List, Dict, Set)