Can anyone provide me proper steps that how can i execute same code in jupiter as virtual machine
You can use Jupiter Notebook to run your Python codes. Here are the steps for it
Install Jupyter using Anaconda Installing the classic Jupyter Notebook interface — Jupyter Documentation 4.1.1 alpha documentation
Running the Jupyter Notebook Running the Notebook — Jupyter Documentation 4.1.1 alpha documentation
Create a new notebook and write your python code in it.
Hit on run kernel