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
educational website project

Multi-valued Attribute DBMS Each multi valued attribute maps into a separate table. Include also an attribute for the primary key of the entity and relationship type which the attr

Question 1 What is web browser? List and explain the most common used web server Question 2 Discuss the anatomy of XML document Question 3 Discuss the various attr

Problem 1. Obtain the truth table and a Boolean expression for the following conditions: x is 0 if any two of the three variables are 1. x is 1 for all other conditions.

Ultrasonic Waves: Sound waves outside the audible range of humans. Ultrasonic waves consist of frequencies greater than 20 kHz and exist in excess of 25 MHz. Applications include i

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

Types of chat room: Java Chat rooms: The most common and popular chat scripts are based on java which is object oriented language. Java is freely available and comes with virt

Create systems flow chart and state tranistion diagram for online placement and consultancy

You are to code a C++ program that will read the file IntList into an integer array. There are no more than 20 integers in the file. After all of the data is read into the file,

number of 4 to 16 line decoders required to get 8 lto 256 line decoder