PYTHON CORE · LESSON 42
Extra gaps
Method of strip · about 9 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Reprint and check where the gaps are inside the quote marks.
word = " пёс "
print(word.strip())Open the editor for class workSolve it yourself
Save « кот » with two spaces at the edges in word. Output text without spaces on the edges through strip.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework