Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 15 Online
OpenStudy (anonymous):

hi. why do comments in functions look like this:- """ some comments... """ instead of like this:_ "some comments..."

OpenStudy (rsmith6559):

In Python, the three ( single or double ) quotes are used for multiple line comments. Single line comments can also be done using a pound sign. The single double quote is used for a string literal like "123", which would be the characters 1, 2 and 3, not their numerical value.

OpenStudy (anonymous):

Thank you

OpenStudy (anonymous):

If you include " .... " in a function, on the Python Shell you start typing: function( and nothing displays, if you use ''' description ''', when you start typing: function( the description you typed will be display

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Jalissa21: What does adenoma mea?
9 minutes ago 1 Reply 0 Medals
Twilightt: How Can We Prevent Gun Violence in American Schools?
2 hours ago 2 Replies 1 Medal
Twaylor: possible?
2 days ago 5 Replies 0 Medals
Arriyanalol: hekp
3 days ago 33 Replies 0 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!