Comments in Python are prefixed with #
Working in vim you will need to insert # at some point where you think it's appropriate.
Go to that point then type: i#ESC
...where ESC is the escape key
To delete a comment you'll want to search for #
Type: /#
This will take you to the first occurrence of # from your current position. Once you've established that you've found the comment that you want to delete then...
Type: d
I'm new with vim and working on Mac with python, and want to know how to comment/uncomment a single line with vim. Most of the IDEs that I've worked with use Cmd+/ it there something similar?  I tried to find the answer but everything I found was about multiple lines!
How to comment/uncomment a single line in vim