Skip to content

Instantly share code, notes, and snippets.

View sccreeper's full-sized avatar
💻

Oscar Peace sccreeper

💻
View GitHub Profile
from turtle import *
data = {}
speed(0)
slices = 0
total = 0
def inputChart():
global slices,total
try:
@sccreeper
sccreeper / run.py
Created January 4, 2025 17:06
Runner for my university's programming worksheets.
import importlib
import os
from inspect import getmembers, isfunction, signature
import typing
# Purpose of this file is to act as a shim around all the files in the practical folders.
# It allows you to run specific functions and also means they can share common libraries in the lib folder
# All functions must have type hints in order to work properly
# Never try and do "reflection" in Python, if you can even call it that
def main():