Skip to content
← Back to Community
Simple Python IDE
Profile icon
h
has Hacker Plan
AR199

This is a simple Python IDE I made using the exec function.

Voters
Profile icon
nyfaaly
Profile icon
arpa76
Profile icon
george2010
Profile icon
Kalad81882
Profile icon
NathanielLamson
Profile icon
WilliamOberding
Profile icon
EcholessMoose
Profile icon
KMHematilake
Profile icon
JudhySant
Profile icon
GokceOnal1
Comments
hotnewtop
Profile icon
Dunce

tip:
instead of always raising a syntax error, no matter what the error actually is, like you're doing here:

try: print(f"{cyan}", end="") for thng in thing: if thng in tokens: print(f"{green}", end="") exec(thing) except: print(colored("Syntax Error.", "red"))

you can get what the actual error is, like so:

try: print(f"{cyan}", end="") for thng in thing: if thng in tokens: print(f"{green}", end="") exec(thing) except Exception as error: print(colored(error, "red"))

this can also be useful for debugging.

Profile icon
AR199

@Dunce Okay, thank you!