install simplehttpserver python 3 code example
Example 1: python3 server
python3 -m http.server --bind 127.0.0.1 8080
Example 2: python local server command
On Ubuntu go to Commands and hit these two commands->
cd folderName
python3 -m http.server 8080