- 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 37 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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
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
statement? print(do_sum(my_list[2:5]))
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