This website works better with JavaScript.
Home
Explore
Help
Sign In
E2L_Ivry
/
cours-python
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
no if name is main
master
Dimitri Merejkowsky
6 years ago
parent
f519e75f9a
commit
009b2fa843
4 changed files
with
5 additions
and
7 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
sources/03-fonctions.py
+1
-3
sources/04-pendu.py
+1
-2
sources/05-airports.py
+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)
c = add(a, b)
print(c)
print(c)
def greet(name, shout=False):
def greet(name, shout=False):
print("Hello,", end=" ")
print("Hello,", end=" ")
print(name, end="")
print(name, end="")
+ 1
- 3
sources/04-pendu.py
View File
@@ -47,6 +47,4 @@ def main():
print("Gagné")
print("Gagné")
return
return
if __name__ == "__main__":
main()
main()
+ 1
- 2
sources/05-airports.py
View File
@@ -27,5 +27,4 @@ def main():
print(result)
print(result)
if __name__ == "__main__":
main()
main()
+ 1
- 2
sources/06-top-words.py
View File
@@ -33,5 +33,4 @@ def main():
stream.close()
stream.close()
if __name__ == "__main__":
main()
main()