write a for-loop that iterates over start_list and .append()s each number squared (x ** 2) to square_list. then sort square_list!
Answers
Answered by
2
Héy!!!
So, thé answer is... ---start_list = [5, 3, 1, 2, 4] square_list = [] for number in start_list: # Your code here! start_list.append(number ** 2) square_list.sort() print square_list
#ThankYou
Marks me as Brilliant.
@Ramsharma
So, thé answer is... ---start_list = [5, 3, 1, 2, 4] square_list = [] for number in start_list: # Your code here! start_list.append(number ** 2) square_list.sort() print square_list
#ThankYou
Marks me as Brilliant.
@Ramsharma
Similar questions
English,
7 months ago
Biology,
7 months ago
History,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago