Model not visible

I’m new to Panda3D and have written a simple code-

import direct.directbase.DirectStart
class World:
def init(self):

On running this I get a blank screen of black colour or whichever colour is mentioned in Background colour. Even on clicking or dragging, the model doesn’t appear.

I had python pre-installed in my laptop but have uninstalled it too. What should be done now?

Welcome to the forum!

First of all, your code is correct. Tested it just to be sure.
This means there probably is something wrong with your model (maybe extremely small, no texture [though that should still display it as white], the model hidden away in a sub folder?).
The fact that you do get a screen with the specified background collor should mean your install is succesfull.
You may want to test it anyway by copying your code file into, for instance, the ‘\Panda3D-1.8.1\samples\Ball-in-Maze\models’ folder, and change “player.egg” into “ball.egg”. Then you can also see the required result for your own model.

You could also try loading your model into PView, by running "pview " from cmd/a terminal.