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
Perverse software: Perverse software is a program which causes hindrances in other programs execution in such a way resulting in modification or complete destruction of data w

QUESTION Consider a University system which has several sub systems: Student Registration Module Registration Time Tabling Library System Human Resource Manag

1. Write an algorithm and draw a flowchart to accept the names and gross salary of 5000 employees and to generate the net pay. If the gross salary is greater than N 50,000 declare


Computer: People call a lot of things, computers. Some of them are cheap, but can only process numerical information. Such devices would better be described as 'calculators' r

What is CAI? Explain its pitfalls

Opening files 0FH function is used to open an FCB file the 21H interruption. The element, the name and extension of the file must be initialized previous to opening it. The DX regi

write a fuctions for MIDSQUARING hashing technique

Question 1 Differentiate between PL/SQL functions and procedures Question 2 Draw the diagram of logical structure of oracle database and explain it in brief Question 3 D

StatefulServer, maintains some information between requests. Requires smaller messages, since some information is kept between contacts, example: FTP, telnet. Stateless Server req