1#There is no way to comment multiple lines in Python.
2#You just keep using "#" symbol to comment each line out.
3
4'''
5Technically you could also use triple single quotation
6marks like so, but this formatting does not count
7as "true" source code comments that are removed by
8a Python parser.
9'''
1#%% There are not multiline comments in python,
2# this # is the only form of commenting but, people use
3# """triple quotes""" for multiline commenting but this
4# is actually a String the interpreter will read and
5# will ocupy memory. If you dont put this kind of string
6# into a variable it will be collected on execution
1def increase_salary(sal,rating,percentage):
2 """ increase salary base on rating and percentage
3 rating 1 - 2 no increase
4 rating 3 - 4 increase 5%
5 rating 4 - 6 increase 10%
6
7 """
8
1 def windows():
2 print('Select the text, Press CTRL + K , C to comment')
3
4 def mac():
5 print('Multi-line comment select the lines to be commented. Ctrl + 4.')
6