Comments in Python, Basic Computer Science

A hash sign (#) that is not within a string literal begins a comment. All characters later than the # and up to the physical line end are division of the comment, and the Python interpreter disregards them.
#!/usr/bin/python

# First comment
print "Hello, welcome to python!"; # second comment
This will create following outcome:
Welcoem to Python!
A comment possibly on the same line after a statement or term:
name = "fentsdisuja" # This is another time comment
You can comment multiple lines in this manner:
• # Here name denotes file name
• &
• # Id denotes identity

Posted Date: 5/5/2012 3:19:52 AM | Location : United States







Related Discussions:- Comments in Python, Assignment Help, Ask Question on Comments in Python, Get Answer, Expert's Help, Comments in Python Discussions

Write discussion on Comments in Python
Your posts are moderated
Related Questions
You are an engineer involved in the development of a financial system. During installation, you discover that this system will make a significant number of people redundant. The pe

Computers can be used for better and more efficient management and organisation of laboratories. A computer like the human brain receives information, stores and processes it and t

You recently returned some homework I completed but i left of the final 10 questions. Should not take long just needs some commands interpreted. How much will it cost for me to get


WHY ISN''T THE PRICE STORED ON THE BARCODE

what is the first computer in this world


explain the working of gaided media ?

Time Sharing System: With the use multiprogramming, the batch processing can be quite  efficient. However, for many jobs, it is desirable to provide a mode in which the user i

Login Because the information on a network is sharable, networks are very susceptible to unauthorized intruders. In order to prevent unauthorized access to use the services o