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
Consider the one-time pad encryption scheme to encrypt a 1-bit message m, and assume m is chosen with uniform distribution from message space M={0,1}. Let E1 be the event "message

Shell Scriptiong

Stable wireless networks and mobile devices online tutoring In Bluetooth it is a basically a proprietary open super wireless technology standard for exchanging data over the sh

Question 1 What is mobile telephone initialization? Explain the three main goals of this procedure Define GSM system operations Introduction to mobile telephone initializ

Operating System: Operating  System is the software that manages all the computers' resources to optimize its performance provides common services for efficient execution of v

Moderns: As it was explained earlier, communications channels can operate in either the Analog or digital mode. However, a given circuit can operate only in one mode not both

To build assembler programs with TASM programs is a different program structure than from using debug program. It''s important to comprise the subsequent assembler commands: ..CODE

Sometimes you may drop to perform conversions among the built-in types. To translate between types you just use the type name as a function. There are quite a few built-in function

Write a system using script written in asuitable scripting language to automate taking a basic linux server instance and provisioning it with particular applications based on its I

hitory and genration of computer