shortcut key for comment in python code example
Example 1: spyder - comment banch of codee
# Single line comment
Ctrl + 1
# Multi-line comment select the lines to be commented
Ctrl + 4
# Unblock Multi-line comment
Ctrl + 5
Example 2: comment all selected lines in python
Select relevant lines to be commented, then use ctrl+/