Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtisQ&A DiscussƵes
I need to design a recursive function called replicate recurĀ which will receive two arguments:Ā timesĀ which is the number of times to repeat and dataĀ which is theĀ number or stringĀ to be repeated.
The function should return an array containing repetitions of the data argument.
For instance,Ā replicate_recur (3, 5)Ā should return [5,5,5].
If the timesĀ argument is negative or zero, return an empty array. If the argument is invalid,Ā raise ValueError.
0 Voto
4 RespostasQuente hoje
Beginner
2 Votes
Can't fill gaps after app update
2 Votes
which line would you use irl?
1 Votes
Please help šš»
0 Votes
what is the mentor tag?
0 Votes
Ceasor Cypher š
1 Votes
There is a bug in the app
1 Votes