Page 1 of 1

execute regular Python script using MicroPython

Posted: Sun Jul 24, 2022 10:49 am
by ofirgaash
Hi everyone, I'm new to programming so maybe it's a dumb question so forgive me.

I'm trying to understand how to execute a *python* code using Thonny and raspberry pi pico.
I mean, I'm running a MicroPython code, and I want to give it an 'if statement' something like this:

# do a bunch of stuff
# if something is true: execute a python code
# continue doing stuff



Thanks in advance for any help!!

Re: execute regular Python script using MicroPython

Posted: Sun Jul 24, 2022 4:59 pm
by karfas
What exactly is your problem
a) How to use thonny ?
or
b) How to write an if statement ?

Regarding b): There are great resources about python programming all over the net. Use them.