subject

Python Si scriva una funzione verifica_sequenza che riceve una lista L di interi e un intero k e restituisce True se e solo se la
lista contiene k elementi consecutivi la cui somma è pari a zero.
Esempio: Se L = [6, 1,-5,3,1,-5, -1,9] e k= 4, allora verifica_sequenza(L, k) restituisce True perché L contiene 4 elementi
consecutivi (1,5, 3 e 1) la cui somma è pari a zero.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
You know the right answer?
Python Si scriva una funzione verifica_sequenza che riceve una lista L di interi e un intero k e re...
Questions
question
Mathematics, 14.02.2020 16:30
question
History, 14.02.2020 16:30
question
Health, 14.02.2020 16:30
question
Geography, 14.02.2020 16:30
question
Mathematics, 14.02.2020 16:31
question
Mathematics, 14.02.2020 16:31