What does python -m http.server do?
Correct answer
D. Starts a simple web server serving the current directory
6 views
D. Starts a simple web server serving the current directory
6 views
The -m flag runs a module as a script; http.server is a built-in static server.
Asked in: Python Interview Basics
https://docs.python.org/3/tutorial/introduction.htmlNot sure why the answer is D? Ask here and get an explanation.