0

–ě—ą–ł–Ī–ļ–į –≤ –Ņ—Ä–ł–Ľ–ĺ–∂–Ķ–Ĺ–ł–ł –ī–Ľ—Ź –ź–Ĺ–ī—Ä–ĺ–ł–ī –ł –Ĺ–Ķ —ā–ĺ–Ľ—Ć–ļ–ĺ ..

–Ě–Ķ–Ľ—Ć–∑—Ź –Ņ—Ä–ĺ–Ļ—ā–ł –∑–į–ī–į–Ĺ–ł–Ķ –≠—Ā—ā–į—Ą–Ķ—ā–į, –≤ –ļ—É—Ä—Ā–Ķ Payton. –ü–ł—ą–Ķ—ā "–Ě–Ķ—ā –≤–≤–ĺ–ī–Ĺ—č—Ö –ī–į–Ĺ–Ĺ—č—Ö", —Ö–ĺ—ā—Ź —Ä–Ķ–∑—É–Ľ—Ć—ā–į—ā –≤—č–Ņ–ĺ–Ľ–Ĺ–Ķ–Ĺ–ł—Ź (–í—č–≤–ĺ–ī) –ł –ĺ–∂–ł–ī–į–Ķ–ľ—č–Ļ –≤—č–≤–ĺ–ī –Ņ–ĺ–Ľ–Ĺ–ĺ—Ā—ā—Ć—é –ł–ī–Ķ–Ĺ—ā–ł—á–Ĺ—č. –ö–į–ļ –Ī—č—ā—Ć?

8th Dec 2023, 6:14 PM
VMelnik
VMelnik - avatar
7 Respuestas
+ 4
VMelnik ; you can use the second code, but you should *remove a space* from inside the f-string: this: print(f"Group 1:\n {g1}") has to be like this: print(f"Group 1:\n{g1}"). do this for all 3 outputs. ^ ^^^^
8th Dec 2023, 8:44 PM
Lothar [currently less active]
Lothar [currently less active] - avatar
+ 3
VMelnik , the task description shows an example how the output should be, and this is *without* a leading space for second lines: Expected Output: Group 1: ['Alice', 'Bob'] ...
9th Dec 2023, 7:16 AM
Lothar [currently less active]
Lothar [currently less active] - avatar
+ 3
VMelnik , –Ē—Ź–ļ—É—Ē–ľ–ĺ –∑–į –∑–į–Ņ–ł—ā–į–Ĺ–Ĺ—Ź. –Ě—Ė, —Ź –Ĺ–Ķ —Ä–ĺ–∑—Ä–ĺ–Ī–Ľ—Ź–≤ —Ü—é –Ņ—Ä–ĺ–≥—Ä–į–ľ—É.
12th Dec 2023, 8:15 PM
Lothar [currently less active]
Lothar [currently less active] - avatar
+ 2
–Ě–ĺ —Ä–į–∑–≤–Ķ –ľ–ĺ–∂–Ķ—ā —Ā—á–ł—ā–į—ā—Ć—Ā—Ź –ĺ—ą–ł–Ī–ļ–ĺ–Ļ –Ĺ–į–Ľ–ł—á–ł–Ķ –ĺ–ī–Ĺ–ĺ–≥–ĺ –Ņ—Ä–ĺ–Ī–Ķ–Ľ–į? –í –Ľ—é–Ī–ĺ–ľ —Ā–Ľ—É—á–į–ł —Ā–Ņ–į—Ā–ł–Ī–ĺ Lothar
8th Dec 2023, 8:50 PM
VMelnik
VMelnik - avatar
+ 1
–ú–ĺ–Ļ –ļ–ĺ–ī players = ["Alice", "Bob", "Charlie", "David", "Eve", "Frank"] # –°–ĺ–∑–ī–į–Ļ—ā–Ķ 3 —Ā–Ņ–ł—Ā–ļ–į —Ā 2 –ł–≥—Ä–ĺ–ļ–į–ľ–ł –≤ –ļ–į–∂–ī–ĺ–ľ # –ė—Ā–Ņ–ĺ–Ľ—Ć–∑—É–Ļ—ā–Ķ —Ā—Ä–Ķ–∑—č –ī–Ľ—Ź —Ā–ĺ–∑–ī–į–Ĺ–ł—Ź —Ā–Ņ–ł—Ā–ļ–į –ī–Ľ—Ź Group 1 g1 = players [0:2] # –ė—Ā–Ņ–ĺ–Ľ—Ć–∑—É–Ļ—ā–Ķ —Ā—Ä–Ķ–∑—č –ī–Ľ—Ź —Ā–ĺ–∑–ī–į–Ĺ–ł—Ź —Ā–Ņ–ł—Ā–ļ–į –ī–Ľ—Ź Group 2 g2 = players [2:4] # –ė—Ā–Ņ–ĺ–Ľ—Ć–∑—É–Ļ—ā–Ķ —Ā—Ä–Ķ–∑—č –ī–Ľ—Ź —Ā–ĺ–∑–ī–į–Ĺ–ł—Ź —Ā–Ņ–ł—Ā–ļ–į –ī–Ľ—Ź Group 3 g3 = players [4:6] print("Group 1:\n", g1) # –ĺ—ā–ĺ–Ī—Ä–į–∑–ł—ā—Ć 1-—é –≥—Ä—É–Ņ–Ņ—É print("Group 2:\n", g2) # –ĺ—ā–ĺ–Ī—Ä–į–∑–ł—ā—Ć 2-—é –≥—Ä—É–Ņ–Ņ—É print("Group 3:\n", g3) # –ĺ—ā–ĺ–Ī—Ä–į–∑–ł—ā—Ć 3-—é –≥—Ä—É–Ņ–Ņ—É
8th Dec 2023, 6:15 PM
VMelnik
VMelnik - avatar
0
–Ę–į–ļ–∂–Ķ –Ņ—Ä–ĺ–Ī–ĺ–≤–į–Ľ players = ["Alice", "Bob", "Charlie", "David", "Eve", "Frank"] # –°–ĺ–∑–ī–į–Ļ—ā–Ķ 3 —Ā–Ņ–ł—Ā–ļ–į —Ā 2 –ł–≥—Ä–ĺ–ļ–į–ľ–ł –≤ –ļ–į–∂–ī–ĺ–ľ # –ė—Ā–Ņ–ĺ–Ľ—Ć–∑—É–Ļ—ā–Ķ —Ā—Ä–Ķ–∑—č –ī–Ľ—Ź —Ā–ĺ–∑–ī–į–Ĺ–ł—Ź —Ā–Ņ–ł—Ā–ļ–į –ī–Ľ—Ź Group 1 g1 = players [0:2] # –ė—Ā–Ņ–ĺ–Ľ—Ć–∑—É–Ļ—ā–Ķ —Ā—Ä–Ķ–∑—č –ī–Ľ—Ź —Ā–ĺ–∑–ī–į–Ĺ–ł—Ź —Ā–Ņ–ł—Ā–ļ–į –ī–Ľ—Ź Group 2 g2 = players [2:4] # –ė—Ā–Ņ–ĺ–Ľ—Ć–∑—É–Ļ—ā–Ķ —Ā—Ä–Ķ–∑—č –ī–Ľ—Ź —Ā–ĺ–∑–ī–į–Ĺ–ł—Ź —Ā–Ņ–ł—Ā–ļ–į –ī–Ľ—Ź Group 3 g3 = players [4:6] print(f"Group 1:\n {g1}") # –ĺ—ā–ĺ–Ī—Ä–į–∑–ł—ā—Ć 1-—é –≥—Ä—É–Ņ–Ņ—É print(f"Group 2:\n {g2}") # –ĺ—ā–ĺ–Ī—Ä–į–∑–ł—ā—Ć 2-—é –≥—Ä—É–Ņ–Ņ—É print(f"Group 3:\n {g3}") # –ĺ—ā–ĺ–Ī—Ä–į–∑–ł—ā—Ć 3-—é –≥—Ä—É–Ņ–Ņ—É
8th Dec 2023, 6:52 PM
VMelnik
VMelnik - avatar
0
Lothar, –į –≤—č —Ā–Ľ—É—á–į–Ļ–Ĺ–ĺ –Ĺ–Ķ —Ä–į–∑—Ä–į–Ī–ĺ—ā—á–ł–ļ —ć—ā–ĺ–≥–ĺ –Ņ—Ä–ł–Ľ–ĺ–∂–Ķ–Ĺ–ł—Ź?
12th Dec 2023, 8:09 PM
VMelnik
VMelnik - avatar