Exemple de Quizz Cloudfactory

Germain_double_quotes
1,142 views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Exemple de Quizz Cloudfactory

On peut rédiger un simple quiz en markdown auquel sont ajouté certaines fonctionnalités.

Quizz

try:
    a = {"key": "value"}
    print("Success")
except:
    print("Failure")

try:
    b["key"] = "value"
    print("Success")
except:
    print("Failure")

try:
    c = {}
    c["key1"]["key2"] = "value"
    print("Success")
except:
    print("Failure")
Quels messages la console va afficher?

Execution de script

On peut aussi executer du script (et donner la réponse, du coup).

try:
a = {"key": "value"}
print("Success")
except:
print("Failure")
try:
b["key"] = "value"
print("Success")
except:
print("Failure")
try:
c = {}
c["key1"]["key2"] = "value"
print("Success")
except:
print("Failure")
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Utilisation plus avancé

On peut conserver les quizz sur github, importer des library pour faire des script plus avancés. L'éditeur en ligne comprend la commande ctrl + z pour undo et probablement plein d'autre choses.

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content