I'm not able to run any code on Processing Python mode

Are you using Processing 4? Right now, there’s no Python Mode support for Processing 4. Use Processing 3.5.4, instead.