![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 25.01.2021 20:40 hellokitty1647
Write a function sum_of_ends that takes a list of numbers as an input parameter and: if the list is empty, returns 0 if the list is not empty, returns the sum of the first element (at index 0) and the last element (at index length - 1) Note that for a list with only one element, the first element and the last element would be the same one element in the list and thus the function should return the sum of the element with itself. ex: If a
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 02:10, ttangelique
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
You know the right answer?
Write a function sum_of_ends that takes a list of numbers as an input parameter and: if the list is...
Questions in other subjects:
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 10.11.2020 08:30
![Konu](/tpl/images/cats/mat.png)
Mathematics, 10.11.2020 08:30
![Konu](/tpl/images/cats/mat.png)
Mathematics, 10.11.2020 08:30
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/health.png)
Health, 10.11.2020 08:30
![Konu](/tpl/images/cats/informatica.png)
Computers and Technology, 10.11.2020 08:30
![Konu](/tpl/images/cats/himiya.png)
Chemistry, 10.11.2020 08:30
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 10.11.2020 08:30