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
Software Licensing: Until early 1970's, sharing of software was the accepted norm. Hardware came bundled with software products which could be freely redistributed and the acc

Artificial Intelligence-Environments   We have seen that intelligent agents should take into description sure information when   choosing  a rational act,  including inform

Diskless workstations:    Most people assume that the operating system is stored on a disk that is connected directly to the computer, but this is not necessarily true. If the

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''''''''a''''''''-'''''''

how can use joystick

E-learning: E-learning is one of the most used terms on the Internet that describes any form of learning that is facilitated academically by the electronic means. Such means m

ENTERPRISE RESOURCE PLANNING What has football got to do with it? asks management guru Michael Hammer in his latest best seller Beyond Reengineering. The answer is almos

158.254 Software Development Lifecycle Management Assignment 1 This assignment focuses on requirements engineering. The context to this assignment is the development of a system

Pebble Merchant Problem Description There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides.

Question 1 List two I/O virtualization methods. Based on different features compare these two methods Question 2 Discuss three areas considered by organizations to secure the