+ 1

a program to input n numbers from user and store them in a tuple. Print all the numbers from the tuple which is divisible by 5

4th Feb 2023, 8:59 AM
Ayush
Ayush - avatar
5 Réponses
+ 4
You can check it with modul operator if x % 5 == 0: print(x)
4th Feb 2023, 9:30 AM
JaScript
JaScript - avatar
+ 3
Next time please link your attempt from SL playground.
4th Feb 2023, 9:34 AM
JaScript
JaScript - avatar
+ 1
Attempts?
4th Feb 2023, 9:11 AM
A͢J
A͢J - avatar
+ 1
Thanks for your answer i will try
4th Feb 2023, 9:31 AM
Ayush
Ayush - avatar
0
I have tried it but can't divide it from 5😞
4th Feb 2023, 9:21 AM
Ayush
Ayush - avatar