about | help | code help+videos | done | prefs |
squares_better
Write a function squares(n) that returns a list containing the squares of the integers 1 through n. Use a for loop. squares_better(4) → [1, 4, 9, 16] squares_better(1) → [1] squares_better(5) → [1, 4, 9, 16, 25] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy