[Tutor] hi, learning python

Bob Gailer bgailer at alum.rpi.edu
Sun Dec 24 21:00:06 CET 2006


Raven Of Night Raven Of Night wrote:
>     print "Guesses you've taken: ",i, "\nGuess letter: "
>     letter_guess = raw_input()'
>
>
> this is a line of my program, and raw_input only takes one argument. I want 
> it to display like this
>
> Guesses you've taken: 0
> Guess letter: (letter would go here)
>
> instead of
>
> Guesses you've taken: 0
> Guess letter:
> (leter you've taken)
>
> is there a way to continue the input line, like in java you would just do 
> System.out.print?
>   

    print "Guesses you've taken: " ,i 
    letter_guess = raw_input("Guess letter: ")



-- 
Bob Gailer
510-978-4454



More information about the Tutor mailing list