It is fairly easy and like most code editors you need to type:
Ctrl-/ | Command-/ | Toggle comment
To make it more clear this is what you need to do to comment or uncomment a python block of code:
- Select block of lines to comment
- Type “Ctrl + K” followed by “Ctrl + C”
To uncomment use: “Ctrl + K” followed by “Ctrl + U”