forked from microsoft/pxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.json
More file actions
26 lines (26 loc) · 1.29 KB
/
python.json
File metadata and controls
26 lines (26 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"editor": "pyprj",
"title": "Native python",
"steps": [
{
"contentMd": "Tutorials can be written with code in Python.\n```python\ndef on_chat():\n # @highlight\n player.teleport(pos(0, 100, 0))\nplayer.on_chat(\"jump\", on_chat)\n```",
"headerContentMd": "Tutorials can be written with code in Python.",
"showHint": true,
"hintContentMd": "```python\ndef on_chat():\n # @highlight\n player.teleport(pos(0, 100, 0))\nplayer.on_chat(\"jump\", on_chat)\n```"
},
{
"contentMd": "Show some LEDs\n\n```python\nbuilder.teleport_to(pos(0, 0, 0))\nfor i in range(25):\n builder.move(FORWARD, 1)\n builder.move(UP, 1)\n```",
"headerContentMd": "Show some LEDs",
"hintContentMd": "```python\nbuilder.teleport_to(pos(0, 0, 0))\nfor i in range(25):\n builder.move(FORWARD, 1)\n builder.move(UP, 1)\n```"
}
],
"activities": null,
"code": [
"\ndef on_chat():\n # @highlight\n player.teleport(pos(0, 100, 0))\nplayer.on_chat(\"jump\", on_chat)\n",
"\nbuilder.teleport_to(pos(0, 0, 0))\nfor i in range(25):\n builder.move(FORWARD, 1)\n builder.move(UP, 1)\n"
],
"metadata": {
"diffs": false
},
"language": "python"
}