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
Open Systems Interconnection (OS1): As there are many different protocols for LANs and WANs, communication between two different systems can be difficult. The International St

SMA* Search-Artificial intelligence IDA* search is good from a memory point of view. actually it may  be criticised for not using enough memory - utilizing  more memory may inc

FUNCTIONING OF A COMPUTER: Computers have undergone through a long history of evolution. The evolutionary history is often divided into mechanical and electronic era, with ele

how to set up the location (e.g. plaza, hall of fame, lecture theater or etc.) and services that will be used during the exhibition; devices needed; and finally produced a compreh

i am currently studying my computer science engineering 2nd yr. i am unable to select what specification should i take please help me

I am using block matching algorithm to get the motion vectors, now, how can I get the depth map/depth value from the motion vectors?

Question 1 Explain the structure of Mathematical Model in your own words Question 2 Describe Erlang family of distributions of service times Question 3 Describe the algo

akrenda club has just opened their jym and pools services. They need a system that can keep record of total sales of each. The club has silver and gold members. The silver members


Find the corresponding matrix of the digraph above