+ 6

Fizz buzz

n = int(input()) for x in range(1, n): if x % 3 == 0 and x % 5 == 0: print("SoloLearn") elif x % 3 == 0: print("Solo") elif x % 5 == 0: print("Learn") else: print(x) FizzBuzz ‚ÄĒ —ć—ā–ĺ –Ņ–ĺ–Ņ—É–Ľ—Ź—Ä–Ĺ–į—Ź –∑–į–ī–į—á–į, –ļ–ĺ—ā–ĺ—Ä–į—Ź —á–į—Ā—ā–ĺ –ī–į–Ķ—ā—Ā—Ź –≤ —Ö–ĺ–ī–Ķ —Ā–ĺ–Ī–Ķ—Ā–Ķ–ī–ĺ–≤–į–Ĺ–ł—Ź. –ü—Ä–Ķ–ī–Ľ–ĺ–∂–Ķ–Ĺ–Ĺ—č–Ļ –ļ–ĺ–ī —Ä–į–∑—Ä–Ķ—ą–į–Ķ—ā –Ņ—Ä–ĺ–Ī–Ľ–Ķ–ľ—É FizzBuzz –ł –ł—Ā–Ņ–ĺ–Ľ—Ć–∑—É–Ķ—ā —Ā–Ľ–ĺ–≤–į "Solo" –ł "Learn¬Ľ –≤–ľ–Ķ—Ā—ā–ĺ "Fizz" –ł "Fizz". –ě–Ĺ –Ī–Ķ—Ä–Ķ—ā –≤–≤–ĺ–ī n –ł –≤—č–≤–ĺ–ī–ł—ā —á–ł—Ā–Ľ–į –ĺ—ā 1 –ī–ĺ n. –Ē–Ľ—Ź –ļ–į–∂–ī–ĺ–≥–ĺ —á–ł—Ā–Ľ–į, –ļ—Ä–į—ā–Ĺ–ĺ–≥–ĺ 3, –Ņ–Ķ—á–į—ā–į–Ķ—ā "Solo" –≤–ľ–Ķ—Ā—ā–ĺ —á–ł—Ā–Ľ–į. –Ē–Ľ—Ź –ļ–į–∂–ī–ĺ–≥–ĺ —á–ł—Ā–Ľ–į, –ļ—Ä–į—ā–Ĺ–ĺ–≥–ĺ 5, –Ņ–Ķ—á–į—ā–į–Ķ—ā "Learn" –≤–ľ–Ķ—Ā—ā–ĺ —á–ł—Ā–Ľ–į. –Ē–Ľ—Ź —á–ł—Ā–Ķ–Ľ, –ļ—Ä–į—ā–Ĺ—č—Ö 3 –ł 5, –≤—č–≤–ĺ–ī–ł—ā "SoloLearn". –í–į–ľ –Ĺ–Ķ–ĺ–Ī—Ö–ĺ–ī–ł–ľ–ĺ –Ĺ–į–Ņ–ł—Ā–į—ā—Ć –ļ–ĺ–ī, —á—ā–ĺ–Ī—č –Ņ—Ä–ĺ–Ņ—É—Ā–ļ–į—ā—Ć —á–Ķ—ā–Ĺ—č–Ķ —á–ł—Ā–Ľ–į, —á—ā–ĺ–Ī—č –ī–į–Ĺ–Ĺ–į—Ź –Ľ–ĺ–≥–ł–ļ–į –Ņ—Ä–ł–ľ–Ķ–Ĺ—Ź–Ľ–į—Ā—Ć —ā–ĺ–Ľ—Ć–ļ–ĺ –ļ –Ĺ–Ķ—á–Ķ—ā–Ĺ—č–ľ —á–ł—Ā–Ľ–į–ľ –ī–ł–į–Ņ–į–∑–ĺ–Ĺ–į. –ß—ā–ĺ –Ĺ—É–∂–Ĺ–ĺ —Ā–ī–Ķ–Ľ–į—ā—Ć –≤ —ć—ā–ĺ–ľ –∑–į–ī–į–Ĺ–ł–ł????????

10th Oct 2020, 11:26 AM
–ź–Ĺ–ī—Ä–Ķ–Ļ –ē—Ą–ł–ľ–ĺ–≤
–ź–Ĺ–ī—Ä–Ķ–Ļ –ē—Ą–ł–ľ–ĺ–≤ - avatar
6 Réponses
+ 19
–ü–ĺ–Ņ—Ä–ĺ–Ī—É–Ļ —ć—ā–ĺ for x in range(1, n, 2)
10th Oct 2020, 11:35 AM
Simba
Simba - avatar
+ 4
n = int(input()) for x in range(1, n): if x % 3 == 0 and x % 5 == 0: print("SoloLearn") _______________ elif x%2 == 0: continue _______________ elif x % 3 == 0: print("Solo") elif x % 5 == 0: print("Learn") else: print(x)
31st May 2022, 7:42 AM
Rea69peR
Rea69peR - avatar
+ 1
—Ā—ć–Ĺ–ļ—Ā
10th Oct 2020, 11:53 AM
–ź–Ĺ–ī—Ä–Ķ–Ļ –ē—Ą–ł–ľ–ĺ–≤
–ź–Ĺ–ī—Ä–Ķ–Ļ –ē—Ą–ł–ľ–ĺ–≤ - avatar
+ 1
n = str(int(input()) for i in range( 1, n ) if i % 3 == 0: print("solo") if i % 5 == 0: print("learn") if (i % 3) and (i % 5): print("sololearn") —á—ā–ĺ –Ĺ–Ķ —ā–į–ļ —Ź –Ņ—Ä–ĺ–Ī—č–≤–į–Ľ –Ĺ–Ķ –ł–ī–Ķ—ā
26th Mar 2021, 10:06 PM
–Ě–ł–ļ–ł—ā–į –ü–ĺ—ā–į–Ņ–ĺ–≤
- 2
n = int(input()) for x in range(1, n): if x % 2 != 0 : if x % 3 == 0 and x % 5 == 0: print("SoloLearn") elif x % 3 == 0: print("Solo") elif x % 5 == 0: print("Learn") else: print(x)
17th Jan 2022, 7:49 AM
Francis Njeri
Francis Njeri - avatar
- 6
Fizz buzz n = int(input()) for x in range(1, n): if x % 3 == 0 and x % 5 == 0: print("SoloLearn") elif x % 3 == 0: print("Solo") elif x % 5 == 0: print("Learn") else: print(x)
11th Dec 2020, 5:09 AM
Adam Al
Adam Al - avatar