Qed jitgħabba l-eżerċizzju…
In this exercise, a number turns into a short "raindrop" string based on divisibility rules. The function convert receives number and adds Pling if it is divisible by 3, Plang if it is divisible by 5, and Plong if it is divisible by 7. If none of the rules match, return the number itself as a string.
3"Pling"5"Plang"7"Plong"def convert(number: int) -> str:
Idħol biex tara l-istorja tas-sottomissjonijiet
IdħolIdħol biex tuża l-Mentor tal-AI
Idħol3"Pling"5"Plang"7"Plong"15"PlingPlang"105"PlingPlangPlong"34"34"