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
Question 1 Explain the important concepts of modern CPU Question 2 Discuss the instructions that need to follow while installing new mother board Question 3 Explai

#to determine whether given year is leap year or not

Machines which exhibit intelligent nature Machines in this case could easily be personal computers, or they could be robots with embedded systems, or a combination of both. Wh

There are two kinds of FCB, the normal, whose length is 37 bytes and the expanded one of 44 bytes. The FCB is created of data given by the programmer and by data which it takes dir

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


Explain how the internet works

#questionexplain strategic mis categories in detail with illustration..

Internal Structure of Agents We have looked at agents in conditions of their outside influences and behaviors: they take effort from the atmosphere and do lucid actions to chan

• The SRT is the preemptive complement of SJF and helpful in time-sharing environment. • In SRT scheduling, the process with the least estimated run-time to completion is run next,