$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #26

Fill the operator so each x is squared (x to the power 2).

squares = [x____2 for x in range(n)]

Answer: ** (also accepted: **)

x**2 raises x to the power 2 in the comprehension.
Play Problem Solving ▸