how is python Using Blank Lines and Waiting for the User, Basic Computer Science

A line holds only whitespace, probably with a comment, is identified as a blank line, and Python completely avoids it.
In an interrelated interpreter session, you need to enter an empty physical line to terminate a multiline statement.
The following line of the program displays at the appointed time, Press the enter key to exit. Waits for the user till that time when key press Enter.
#! /usr/bin/python

raw_input ("\n\press the enter key to exit.")
At this time "\n\n" is being utilized to make two new lines before displaying the real line.
One time the user presses the key, the program stops. This is a nice trick to remain a console window open awaiting the user is done with an application.
Posted Date: 5/5/2012 3:21:56 AM | Location : United States







Related Discussions:- how is python Using Blank Lines and Waiting for the User, Assignment Help, Ask Question on how is python Using Blank Lines and Waiting for the User, Get Answer, Expert's Help, how is python Using Blank Lines and Waiting for the User Discussions

Write discussion on how is python Using Blank Lines and Waiting for the User
Your posts are moderated
Related Questions
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

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

Fundamentals of IT 1. How do you insert a symbol in a Word document? 2. Explain absolute cell addressing? 3. Discuss Custom List? 4. Explain applications of Multimedia


To satisfy client needs through proxy server and not through main server, as some other user have already accessed that file and its copied to the proxy server, so next time a user

Cryptography, the study of secret writing, has been around for a very long time, from simplistic techniques to sophisticated mathematical techniques. No matter what the form howeve

Many persons are taught AI with the opening line: " The three most important things in AI are representation, representation and representation ". While selecting the method of

QUESTION a) The handling of the INVITE transaction in SIP is completely different from the handling of other transactions. The handling of the INVITE is one of the most complex

Compiler A compiler is a special program which translates programs written in high level language into machine language. The original program is called the source progra

Question 1 Discuss on "Platform as a Service" Question 2 Write a note on Accounting Services Question 3 Explain the different Software clients Question 4 D