generateur_v3/backend/api/tests/testing_exo_source/exo_source.py

11 lines
295 B
Python
Raw Normal View History

2022-09-16 21:50:55 +02:00
import random
"""
Fonction main() qui doit renvoyer un objet avec:
calcul: le calcul a afficher
result: la correction du calcul (pas de correction -> mettre None)
"""
def main():
2022-10-10 01:34:38 +02:00
t = random.randint(1,9)
return {"csv": f"1 + [1] = 2", 'pdf': None, "web": f"1 + [1] = {t}","calcul": "1+1=2"}