[Tutor] I need help solving this

Adam Eyring adameyring at gmail.com
Tue Jun 9 22:46:21 EDT 2020


If you set up your if statements correctly to respond to the user input,
you should only get one output. e.g.
i = input("(B)lue, (G)reen, (Y)ellow?")
if i == "B":
    draw blue circle
elif i == "G":
    draw green circle
else:
    draw yellow circle

AME

On Tue, Jun 9, 2020 at 4:13 AM Alan Gauld via Tutor <tutor at python.org>
wrote:

> On 09/06/2020 04:21, harold Romero wrote:
> > My program needs to have two input statements.  One will ask for the
> shape and the other for the location.
>
> > Im having a problem with have all four being drawn I just want one
>
> Without seeing your code we cannot begin to guess what you have done
> wrong. But the intention of the exercise is obviously for you to capture
> the input data and other choices as variables then draw one shape using
> those variables as parameters. So there really shouldn't be 4 of them!
>
>
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.amazon.com/author/alan_gauld
> Follow my photo-blog on Flickr at:
> http://www.flickr.com/photos/alangauldphotos
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>


More information about the Tutor mailing list