-4
I’m new to Python and the teacher is going through his classes too fast. Although it is ridiculous, I am in doubt what is wrong in the code below. I believe that the (basic) logic is not very wrong, but I am completely lost in the syntax. If you can help me, I really appreciate it! The purpose of the program is to find out how many shuttles would be destroyed. He will receive the total sum of the amount of petecas that three friends have, divide by the amount of friends and see how many petecas will remain. That rest is the amount of suckers that would be destroyed, to prevent friends from fighting.
def destruir_petecas(num_petecas, num_amigos = 3):
"""Escreva a instrução
>>> destruir_petecas(91)
1
"""
pass
destruir = destruir_petecas % num_amigos
print (destruir)
print(
destruir_petecas(91),
destruir_petecas(91,7),
destruir_petecas(91,7),
)
https://meta.stackexchange.com/q/354782/176034
– Victor Stafusa