Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions students/dychowicz_monika/lesson_07/TheNumberOfWords.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def main():
text = input()
print(1 + (text.count(' ')))


if __name__ == '__main__':
main()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W292 no newline at end of file

7 changes: 7 additions & 0 deletions students/dychowicz_monika/lesson_07/ToSwapTwoWords.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def main():
a, b = [x for x in input().split()]
print(' '.join([b, a]))


if __name__ == '__main__':
main()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W292 no newline at end of file

Empty file.
Empty file.
Empty file.