Browse Source

no if name is main

master
Dimitri Merejkowsky 5 years ago
parent
commit
009b2fa843
4 changed files with 5 additions and 7 deletions
  1. +2
    -0
      sources/03-fonctions.py
  2. +1
    -3
      sources/04-pendu.py
  3. +1
    -2
      sources/05-airports.py
  4. +1
    -2
      sources/06-top-words.py

+ 2
- 0
sources/03-fonctions.py View File

@@ -6,6 +6,8 @@ b = 2
c = add(a, b)
print(c)



def greet(name, shout=False):
print("Hello,", end=" ")
print(name, end="")


+ 1
- 3
sources/04-pendu.py View File

@@ -47,6 +47,4 @@ def main():
print("Gagné")
return


if __name__ == "__main__":
main()
main()

+ 1
- 2
sources/05-airports.py View File

@@ -27,5 +27,4 @@ def main():
print(result)


if __name__ == "__main__":
main()
main()

+ 1
- 2
sources/06-top-words.py View File

@@ -33,5 +33,4 @@ def main():
stream.close()


if __name__ == "__main__":
main()
main()