diff --git a/sources/03-fonctions.py b/sources/03-fonctions.py index 8d6851e..521baab 100644 --- a/sources/03-fonctions.py +++ b/sources/03-fonctions.py @@ -6,6 +6,8 @@ b = 2 c = add(a, b) print(c) + + def greet(name, shout=False): print("Hello,", end=" ") print(name, end="") diff --git a/sources/04-pendu.py b/sources/04-pendu.py index 1a63413..28d37f3 100644 --- a/sources/04-pendu.py +++ b/sources/04-pendu.py @@ -47,6 +47,4 @@ def main(): print("Gagné") return - -if __name__ == "__main__": - main() +main() diff --git a/sources/05-airports.py b/sources/05-airports.py index ab19b81..d6bf844 100644 --- a/sources/05-airports.py +++ b/sources/05-airports.py @@ -27,5 +27,4 @@ def main(): print(result) -if __name__ == "__main__": - main() +main() diff --git a/sources/06-top-words.py b/sources/06-top-words.py index 8817ba4..407fa3a 100644 --- a/sources/06-top-words.py +++ b/sources/06-top-words.py @@ -33,5 +33,4 @@ def main(): stream.close() -if __name__ == "__main__": - main() +main()