Last active
November 14, 2019 21:08
-
-
Save mattiasb/044ce93ee43b8c4b87f460223bc6904e to your computer and use it in GitHub Desktop.
Enkel Python
This file contains 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
#!/usr/bin/env python3 | |
def hello(person): | |
print("Hello {0}!".format(person.capitalize())) | |
for x in range(1, 5): | |
if x >= 3: | |
hello("kalle") | |
else: | |
hello("pelle") |
This file contains 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
$ python3 ./hej.py | |
Hello Pelle! | |
Hello Pelle! | |
Hello Kalle! | |
Hello Kalle! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment