diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-11-21 20:43:31 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-11-21 20:43:31 +0100 |
| commit | c67a20de8f57526cfa76b89e2df5832fcbc2b340 (patch) | |
| tree | f40a46a80bdeb29282a1582909501b5e86afd7a6 /zahlenspiel.py | |
| parent | 0d70b4ed80c0c04549ec8da4871eace2aebc608e (diff) | |
| download | bwinf-33-c67a20de8f57526cfa76b89e2df5832fcbc2b340.tar.gz bwinf-33-c67a20de8f57526cfa76b89e2df5832fcbc2b340.zip | |
Zahlenspiel für import optimieren
Diffstat (limited to 'zahlenspiel.py')
| -rwxr-xr-x | zahlenspiel.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zahlenspiel.py b/zahlenspiel.py index 6adff0b..dafec34 100755 --- a/zahlenspiel.py +++ b/zahlenspiel.py @@ -43,4 +43,5 @@ def aufgaben(stufe, anzahl): a, b, p, q = bruch(stufe) print(str(a) + " / " + str(b) + " = " + str(p) + " / " + str(q)) -aufgaben(randrange(4), randrange(1, 10)) +if __name__ == "__main__": + aufgaben(randrange(4), randrange(1, 10)) |
