MACHINE LEARNING

APPLICATION OF SUPERVISED LEARNING

ARTIFICIAL INTELLIGENCE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
To create a comment in Python, what symbol do you use?
A
#
B
‘’ “
C
( )
D
*
Explanation: 

Detailed explanation-1: -Comments in Python are identified with a hash symbol, #, and extend to the end of the line.

Detailed explanation-2: -Single-line comments begin with two forward-slashes (//): // This is a comment.

Detailed explanation-3: -The most common way to comment out a block of code in Python is using the # character. Any line of code starting with # in Python is treated as a comment and gets ignored by the compiler.

Detailed explanation-4: -To comment out multiple lines in Python, you can prepend each line with a hash ( # ). With this approach, you’re technically making multiple single-line comments. The real workaround for making multi-line comments in Python is by using docstrings.

There is 1 question to complete.