the :normal command runs normal commands on multiple lines

The :normal command is a useful way to run the same Normal mode command on multiple lines.

:%normal i# <CR>

The command above will comment out an entire Python source file.