+ 2

Can anyone tell me how to solve this?

Def select(i): return i%3 For x in range(10): If x%5==0 Print(select(x))

26th Aug 2020, 10:38 AM
Givantaro Coding
Givantaro Coding - avatar
2 Answers
+ 3
Output will be 0 and 2 numbers in range(10) that return 0 as remainder to x%5 are 0 and 5 (0%5= 0 and 5%5 = 0).So select function will retutn 0%3 (0) and 5%3(2).
26th Aug 2020, 10:58 AM
HBhZ_C
HBhZ_C - avatar
+ 1
How are you going to implement this code in web development?
26th Aug 2020, 10:47 AM
Shadoff
Shadoff - avatar