Skip to content

Latest commit

 

History

History
136 lines (104 loc) · 2.12 KB

File metadata and controls

136 lines (104 loc) · 2.12 KB
theme dracula
background https://source.unsplash.com/collection/94734566/1920x1080
class text-center
highlighter shiki
lineNumbers false
drawings
persist
wakeLock build
aspectRatio 16/9
css unocss

WebTigerPython

Placeholder

Author


layout: two-cols-header

Who am I

::left::

::right::


layout: wtp-2-cols code: | from turtle import *

forward(100)

Turtle Graphics 🐢

  • Basic instructions

layout: wtp-2-cols code: | from microbit import *

while True: display.show(Image.HEART) sleep(500) display.clear() sleep(500) device: micro:bit

BBC Micro:bit 🖥️

  • Compact educational microcontroller
  • Python programmable
  • Built-in sensors
    • Accelerometer
    • Temperature
    • Compass

layout: wtp-2-cols code: | import sqlite3

Connect to database

conn = sqlite3.connect('example.db') cursor = conn.cursor()

SQLite3 in Python 💾

  • Embedded relational database
  • No separate server process
  • Lightweight and portable
  • Built into Python standard library

layout: wtp-2-cols code: | rows = 10 print("Pyramid Pattern:") for i in range(rows): print(" " * (rows - i - 1) + "*" * (2 * i + 1)) print() wtpLayout: '["Editor", "Console"]'

No Canvas View 💾

  • Layout can also be specified
  • Components
    • Editor
    • Canvas
    • Console
  • Only 1 Canvas
  • Specified in nested list
    • e.g. '["Editor", "Console"]'

Feel free to let me know if you need any further adjustments!