Computer Science, asked by arunyes2004, 5 months ago

write a python program to create a list containing the squares of the integers 1 though 50​

Answers

Answered by niharikagurjar2005
4

 Answer

Get a list of numbers as input from the user

  1. Use a input() function to accept the list elements from a user in the format of a string separated by space.
  2. Next, Use a split() function to split a string by space and added those numbers to the list.
  3. Next, iterate a user list using for loop and range() function.
Similar questions