On Mon, Jun 11, 2018 at 11:16:39AM +0000, Steven D'Aprano wrote:
> > I want to prompt 3 questions together and then get input for the first
> > question next to question as below.
> >
> > 1. Enter your name : _
> > 2. Enter your age :
> > 3. Enter your gender :
> >
> > After showing the below prompts, the cursor waits in first question for
> > an input.
>
> How else do you expect to tell the three inputs apart?
>
> But okay.
>
>
> print("1. Enter your name :")
> print("2. Enter your age :")
> print("3. Enter your gender :")
> name = input("")
> age = input("")
> gender = input("")
That doesn't solve the "next to" part in
get input for the first question next to question
:)
Karsten
--
--
https://mail.python.org/mailman/listinfo/python-list