Page 1 of 1

Given the list: my_list-[32, 45, 20, 6, 8, 12, 51, 12] and the following Python function: def do_sum(a_list): sum2- for

Posted: Fri May 20, 2022 12:56 pm
by answerhappygod
Given The List My List 32 45 20 6 8 12 51 12 And The Following Python Function Def Do Sum A List Sum2 For 1
Given The List My List 32 45 20 6 8 12 51 12 And The Following Python Function Def Do Sum A List Sum2 For 1 (50.28 KiB) Viewed 39 times
Given the list: my_list-[32, 45, 20, 6, 8, 12, 51, 12] and the following Python function: def do_sum(a_list): sum2- for element in a_list: sum2+-element 2 return sum2 what will be output by the following statement? print(do_sum(my_list[2:5]))