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
-
answerhappygod
- Site Admin
- Posts: 899604
- 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
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]))
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!