Skip to content
Kyuchumimo edited this page Jan 6, 2025 · 7 revisions

🧩 This function depends on os Python 3.x built-in module.
🧩 This function depends on sys Python 3.x built-in module.

  • reset

Resets the program.

To simply return to the console, please use exit.

See also:

Example

# title:  reset API Command Demo (Python)
# author: StinkerB06, edited by Kyuchumimo
t=0
def TIC():
    if btn(4): reset()
    cls()
    print("Press Z to reset counter.",1,1)
    print(t,1,8)
    t=t+1

Clone this wiki locally