ソースを参照

mehr videos, kleine umbauten

Thomas Verchow 5 年 前
コミット
09209c948f
3 ファイル変更27 行追加3 行削除
  1. 6 2
      src/hanna_rechnet/aufgaben.py
  2. 1 1
      src/hanna_rechnet/hanna_rechnet.py
  3. 20 0
      videos.txt

+ 6 - 2
src/hanna_rechnet/aufgaben.py

@@ -25,8 +25,12 @@ def minus_einstellig_ueber_zehnergrenze_hinweg_unter_100():
 
 
 def minus_einstellig_unter_100():
-    y = randint(1, 9)
-    x = randint(y, 99)
+    return _minus(range(10,99), range(1,9))
+
+
+def _minus(minuend: list, subtrahend: list):
+    x = choice(minuend)
+    y = choice(subtrahend)
 
     aufgabe = f"{ x } - { y } = ?"
     ergebnis = x - y

+ 1 - 1
src/hanna_rechnet/hanna_rechnet.py

@@ -20,7 +20,7 @@ seed()
 
 videos_filename = "videos.txt"
 anzahl_aufgaben = 10
-zeit_zur_verfuegung = 60
+zeit_zur_verfuegung = 600
 
 videos = []
 

+ 20 - 0
videos.txt

@@ -12,3 +12,23 @@ https://www.youtube.com/watch?v=jofNR_WkoCE
 https://www.youtube.com/watch?v=mdIP3hyxi3k
 https://www.youtube.com/watch?v=qmsbP13xu6k
 https://www.youtube.com/watch?v=vH1poPSIvOk
+https://www.youtube.com/watch?v=LUlZ5n0cyak
+https://www.youtube.com/watch?v=-6FbV2j6g4I
+https://www.youtube.com/watch?v=01v9wALJ19w
+https://www.youtube.com/watch?v=d5iDcxo6VVQ
+https://www.youtube.com/watch?v=kHm8f8-uBLw
+https://www.youtube.com/watch?v=O5h9cB9ffAk
+https://www.youtube.com/watch?v=d--IpQdN1N8
+https://www.youtube.com/watch?v=wcibw-m8tRk
+https://www.youtube.com/watch?v=U8nyhA48xP8
+https://www.youtube.com/watch?v=xPYeBv5R6qk
+https://www.youtube.com/watch?v=xPYeBv5R6qk
+https://www.youtube.com/watch?v=xPYeBv5R6qk
+https://www.youtube.com/watch?v=xPYeBv5R6qk
+https://www.youtube.com/watch?v=xPYeBv5R6qk
+https://www.youtube.com/watch?v=xPYeBv5R6qk
+https://www.youtube.com/watch?v=IFZqDcFU4Ow
+https://www.youtube.com/watch?v=eL_Dkly0CBM
+https://www.youtube.com/watch?v=3xSDR8B5W7I
+https://www.youtube.com/watch?v=k85mRPqvMbE
+https://www.youtube.com/watch?v=IkLpSgnEqw4