summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--courses.json54
-rwxr-xr-x[-rw-r--r--]courses.py (renamed from very.py)11
-rw-r--r--dict.json48
3 files changed, 64 insertions, 49 deletions
diff --git a/courses.json b/courses.json
new file mode 100644
index 0000000..882a525
--- /dev/null
+++ b/courses.json
@@ -0,0 +1,54 @@
+[
+ {
+ "name": "english-very",
+ "description": "In this exercise, you have to find a substitute for very + adjective.",
+ "data": [
+ ["Angry", "Furious"],
+ ["Beautiful", "Gorgeous"],
+ ["Big", "Massive"],
+ ["Boring", "Dull"],
+ ["Noisy", "Deafening"],
+ ["Poor", "Destitute"],
+ ["Cheap", "Stingy"],
+ ["Clean", "Spotless"],
+ ["Short", "Brief"],
+ ["Difficult", "Arduous"],
+ ["Dry", "Arid"],
+ ["Quick", "Rapid"],
+ ["Bad", "Awful"],
+ ["Smart", "Intelligent"],
+ ["Sad", "Sorrowful"],
+ ["Upset", "Distraught"],
+ ["Cold", "Freezing"],
+ ["Strong", "Forceful"],
+ ["Huge", "Colossal"],
+ ["Calm", "Serene"],
+ ["Ugly", "Hideous"],
+ ["Small", "Petite"],
+ ["Funny", "Hilarious"],
+ ["Quiet", "Hushed"],
+ ["Rich", "Wealthy"],
+ ["Expensive", "Costly"],
+ ["Dirty", "Filthy"],
+ ["Tall", "Towering"],
+ ["Easy", "Effortless"],
+ ["Wet", "Soaked"],
+ ["Slow", "Sluggish"],
+ ["Good", "Excellent"],
+ ["Stupid", "Idiotic"],
+ ["Happy", "Ecstatic"],
+ ["Exciting", "Exhilarating"],
+ ["Warm", "Hot"],
+ ["Weak", "Frail"],
+ ["Little", "Tiny"],
+ ["Bright", "Luminous"],
+ ["Busy", "Swamped"],
+ ["Careful", "Cautious"],
+ ["Clear", "Obvious"],
+ ["Colorful", "Vibrant"],
+ ["Confused", "Perplexed"],
+ ["Creative", "Innovative"],
+ ["Crowded", "Bustling"]
+ ]
+ }
+]
diff --git a/very.py b/courses.py
index ed56487..50642f7 100644..100755
--- a/very.py
+++ b/courses.py
@@ -5,8 +5,17 @@ import random
def main():
- dictionary = json.load(open("dict.json", mode="r", encoding="utf-8"))
+ courses = json.load(open("courses.json", mode="r", encoding="utf-8"))
+ for i, course in enumerate(courses):
+ print(f"{i + 1}. {course['name']}: {course['description']}")
+ print(f"Which course do you want to run? [1-{len(courses)}] ", end="")
+
+ course = courses[int(input()) - 1]
+
+ assert course["name"] == "english-very"
+
+ dictionary = course["data"]
correct = 0
for counter, (question, answer) in enumerate(random.sample(dictionary, len(dictionary))):
print(f"Very {question} -> ", end="")
diff --git a/dict.json b/dict.json
deleted file mode 100644
index 187c8bc..0000000
--- a/dict.json
+++ /dev/null
@@ -1,48 +0,0 @@
-[
- ["Angry", "Furious"],
- ["Beautiful", "Gorgeous"],
- ["Big", "Massive"],
- ["Boring", "Dull"],
- ["Noisy", "Deafening"],
- ["Poor", "Destitute"],
- ["Cheap", "Stingy"],
- ["Clean", "Spotless"],
- ["Short", "Brief"],
- ["Difficult", "Arduous"],
- ["Dry", "Arid"],
- ["Quick", "Rapid"],
- ["Bad", "Awful"],
- ["Smart", "Intelligent"],
- ["Sad", "Sorrowful"],
- ["Upset", "Distraught"],
- ["Cold", "Freezing"],
- ["Strong", "Forceful"],
- ["Huge", "Colossal"],
- ["Calm", "Serene"],
- ["Ugly", "Hideous"],
- ["Small", "Petite"],
- ["Funny", "Hilarious"],
- ["Quiet", "Hushed"],
- ["Rich", "Wealthy"],
- ["Expensive", "Costly"],
- ["Dirty", "Filthy"],
- ["Tall", "Towering"],
- ["Easy", "Effortless"],
- ["Wet", "Soaked"],
- ["Slow", "Sluggish"],
- ["Good", "Excellent"],
- ["Stupid", "Idiotic"],
- ["Happy", "Ecstatic"],
- ["Exciting", "Exhilarating"],
- ["Warm", "Hot"],
- ["Weak", "Frail"],
- ["Little", "Tiny"],
- ["Bright", "Luminous"],
- ["Busy", "Swamped"],
- ["Careful", "Cautious"],
- ["Clear", "Obvious"],
- ["Colorful", "Vibrant"],
- ["Confused", "Perplexed"],
- ["Creative", "Innovative"],
- ["Crowded", "Bustling"]
-]