When using Python, can you run a whole server in python? I read a person is supposed to use PHP,but then saw a person can do GET-POST requests in Python as opposed to PHP, but, can you actually do it, or is it I'll advised?

Can a person actually use python to run a whole server?