def six_by_seven(n):
if n % 42 == 0:
return "Universe"
if n % 7 == 0:
return "Good"
if n % 6 == 0:
return "Food"
else:
return "Oops"
How would I use a loop in the function stated above to get the output stated down below?
Thanks
1 Oops
2 Oops
3 Oops
4 Oops
5 Oops
6 Food
7 Good
...
41 Oops
42 Universe
...
98 Good
99 Oops
100 Oops
I tried using a for loop with a variable called count. I couldn't figure what to type in for a for loop. I tried a while loop as well. Same problem.