+ 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))
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).
+ 1
How are you going to implement this code in web development?