write a python program to create a list containing the squares of the integers 1 though 50
Answers
Answered by
4
Get a list of numbers as input from the user
- Use a input() function to accept the list elements from a user in the format of a string separated by space.
- Next, Use a split() function to split a string by space and added those numbers to the list.
- Next, iterate a user list using for loop and range() function.
Similar questions