Created
September 16, 2020 20:19
-
-
Save calthoff/3f6daff256b7e0053743e89de5a8ff2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# exercise 1 | |
for c in "Camus": | |
print(c) | |
# exercise 2 | |
print("aldous was born in 1894.".capitalize()) | |
# exercise 3 | |
print("Where now? Who now? When now?".split('?')) | |
# exercise 4 | |
print(' '.join(["The", "fox", "jumped", "over", "the", "fence", "."])) | |
# exercise 5 | |
print("three" + "three" + "three") | |
print("three" * 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exercise 5 can be solved in multiple ways; however, the built-in IDE flags them all as incorrect, including the proposed solutions here, as shown in the screenshots below.