Skip to content

Instantly share code, notes, and snippets.

@mattiasb
Last active November 14, 2019 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattiasb/044ce93ee43b8c4b87f460223bc6904e to your computer and use it in GitHub Desktop.
Save mattiasb/044ce93ee43b8c4b87f460223bc6904e to your computer and use it in GitHub Desktop.
Enkel Python
#!/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")
$ 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