Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtisQ&A DiscussƵes
Recover!
2 Votos
1 RespostaI 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
How to cast in python : 2
2 Votes
Bits
4 Votes
Polyalphabetic Cipher
0 Votes
Why didn't I get it?
1 Votes
No connection message
0 Votes