PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Created by Sonam Tashi
# the SoloLearn program, which replaces numbers
# divisible by 3 with Solo, 5 with Learn,
# and by both with SoloLearn.
x = int(input())
for x in range(1,x):
# Replacing the value of multiples of 3 and 5 with SoloLearn.
if x % 3 == 0 and x % 5 == 0:
print("SoloLearn")
# Replacing the value of multiples of 3 with Solo
elif x % 3 == 0:
print ("Solo")
# Replacing the value of multiples of 5 with Learn.
elif x % 5 == 0:
print("Learn")
# Printing the value of leftover x.
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run