From cf6695b274220a3e845b83aab5cba7b9b798af68 Mon Sep 17 00:00:00 2001 From: Dimitri Merejkowsky Date: Sun, 21 Apr 2019 16:02:03 +0200 Subject: [PATCH] Cleanup sources folder --- sources/01-bonjour.py | 1 - sources/03-fonctions.py | 19 ------------------- sources/06-top-words.py | 1 - .../{05-airports.py => airports/airports.py} | 0 sources/{ => airports}/airports.txt | 0 .../devine-nombre.py} | 0 sources/{ => topwords}/macron.txt | 0 sources/{ => topwords}/ruffin.txt | 0 8 files changed, 21 deletions(-) delete mode 100644 sources/01-bonjour.py delete mode 100644 sources/03-fonctions.py delete mode 120000 sources/06-top-words.py rename sources/{05-airports.py => airports/airports.py} (100%) rename sources/{ => airports}/airports.txt (100%) rename sources/{02-devine-nombre.py => devine-nombre/devine-nombre.py} (100%) rename sources/{ => topwords}/macron.txt (100%) rename sources/{ => topwords}/ruffin.txt (100%) diff --git a/sources/01-bonjour.py b/sources/01-bonjour.py deleted file mode 100644 index 48f9aac..0000000 --- a/sources/01-bonjour.py +++ /dev/null @@ -1 +0,0 @@ -print("bonjour, monde!") diff --git a/sources/03-fonctions.py b/sources/03-fonctions.py deleted file mode 100644 index 9c2af6d..0000000 --- a/sources/03-fonctions.py +++ /dev/null @@ -1,19 +0,0 @@ -def add(a, b): - return a + b - -nombre_1 = 1 -nombre_2 = 2 -c = add(nombre_1, nombre_2) -print(c) - - - -def greet(name, shout=False): - print("Hello,", end=" ") - print(name, end="") - if shout: - print("!", end="") - print("", end="\n") - -greet("John") -greet("Jane", shout=True) diff --git a/sources/06-top-words.py b/sources/06-top-words.py deleted file mode 120000 index 9137809..0000000 --- a/sources/06-top-words.py +++ /dev/null @@ -1 +0,0 @@ -topwords/6.py \ No newline at end of file diff --git a/sources/05-airports.py b/sources/airports/airports.py similarity index 100% rename from sources/05-airports.py rename to sources/airports/airports.py diff --git a/sources/airports.txt b/sources/airports/airports.txt similarity index 100% rename from sources/airports.txt rename to sources/airports/airports.txt diff --git a/sources/02-devine-nombre.py b/sources/devine-nombre/devine-nombre.py similarity index 100% rename from sources/02-devine-nombre.py rename to sources/devine-nombre/devine-nombre.py diff --git a/sources/macron.txt b/sources/topwords/macron.txt similarity index 100% rename from sources/macron.txt rename to sources/topwords/macron.txt diff --git a/sources/ruffin.txt b/sources/topwords/ruffin.txt similarity index 100% rename from sources/ruffin.txt rename to sources/topwords/ruffin.txt