Generator

MEDIUM PYTHON

Generate and print a list where the values are square of numbers between two numbers.
Sample Input - between 0 and 20
Output - [ 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324, 361, 400]

Your task: Generate a list where the values are square of numbers between 1 and 50 ( 50 not included ).


Submit Answer

NOTE These questions can be solved in either Java , Python , Rust, C++, Go or ! However, the language intended for these questions is mentioned along with the question on the top. You need to submit the solution file for the autograder to grade the submission. If you are submitting in Java, make sure that the class name is Main (with a capital M)


Optional Python Editor for your use