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
SYMBOLS CHART Every one of the parts on code line in assembler is known as token, for instance on the code line: MOV AX, Var We comprise three tokens, the MOV instruction, the AX o

origin,nature and impact of operation research

Question (a) A firm produces four products: P , Q , R , and S . Each unit of product P requires two hours of milling, one hour of assembly, and $10 worth of in-process in

Question 1 What is a desktop? Explain the Windows XP desktop? 2 How does a flash drive work? 3 Write the procedure for creating Macro 4 Explain the process of applyin

Process States Throughout the lifespan of a process, its execution position may be in one of four states: (linked with each state is generally a queue on which the process resides)

a cloth merchant A cloth showroom has announced the following seasonal discounts on purchase of items: Purchase amount Discount Mill items Handloom items 0-100 - 5% 101-200 5% 7.5%

Hi are you doing an interactive powerpoint porject

Twisted Pairs: Twisted pairs are familiar to all of us as the copper wire telephone lines. These are of low frequency, and support a limited bandwidth (one voice channel) but

Packet Switching: This is one of recent techniques of switching. Packet switching was originally developed for use by ARPA network by the Defence Department of US. According t

QUESTION a) Differentiate between a dynamic and a static web site. b) Why are electronic mails (e-mails) preferred to the post office mails? How do they affect the modern of