[Tutor] 'elp!!!!!!!1Totally Clueless Newbie In Distress

Kent Johnson kent37 at tds.net
Sat Jan 20 14:45:37 CET 2007


Karl Wittgenstein wrote:
> I would also like to ask what skills you think I should develop so I can 
> approach programming more            
> ' natively', and would like to clarify the following issue:
> input("Something") usually displays Something when prompting for 
> input;why is that the case when I run a single line of code and isn't 
> when I use many?When I run three lines straight in this format,only the 
> first message and prompt are displayed...That is surely out of the scope 
> of my current knowledge....Which is not very encompassing,anyway.

input('Something') displays the prompt 'Something' and then waits for 
input up to a new line. When you enter the input it will execute the 
next statement which may be another input().

Kent



More information about the Tutor mailing list