Skip to content

Commit 574eb0c

Browse files
authored
Merge pull request #16 from StuartLW/master
For Loop examples and drag and drop
2 parents dc4487d + 88a0f8a commit 574eb0c

12 files changed

+589
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"Example of creating a drag and drop quiz in the notebook. In the drag_and_drop.py file create a function which links the images to the boxes they should appear in using the DDQuiz class. Then import the quiz and execute it in the cell. The box will flash red if the user tries to drop it in the incorrect box and green and allow the drop if it is correct"
8+
]
9+
},
10+
{
11+
"cell_type": "code",
12+
"execution_count": null,
13+
"metadata": {},
14+
"outputs": [],
15+
"source": [
16+
"from drag_and_drop import quiz2"
17+
]
18+
},
19+
{
20+
"cell_type": "code",
21+
"execution_count": null,
22+
"metadata": {},
23+
"outputs": [],
24+
"source": [
25+
"quiz2()"
26+
]
27+
},
28+
{
29+
"cell_type": "markdown",
30+
"metadata": {},
31+
"source": []
32+
}
33+
],
34+
"metadata": {
35+
"kernelspec": {
36+
"display_name": ".venv",
37+
"language": "python",
38+
"name": "python3"
39+
},
40+
"language_info": {
41+
"codemirror_mode": {
42+
"name": "ipython",
43+
"version": 3
44+
},
45+
"file_extension": ".py",
46+
"mimetype": "text/x-python",
47+
"name": "python",
48+
"nbconvert_exporter": "python",
49+
"pygments_lexer": "ipython3",
50+
"version": "3.12.2"
51+
}
52+
},
53+
"nbformat": 4,
54+
"nbformat_minor": 2
55+
}

0 commit comments

Comments
 (0)