Ask your own question, for FREE!
Computer Science 16 Online
Gucchi:

programming help

Gucchi:

1 attachment
Gucchi:

i need help doin this

Vocaloid:

take the user's input and set it equal to some variable so starting with size, size = input("Enter your shirt size: ") then print a statement that includes the size variable print("You ordered a " + size + " shirt.") repeat this logic for the other two things (color and pattern). you can combine the size, color, and pattern variables into the print statement.

Vocaloid:

actually, it would be a good idea to specify what the choices are in each input statement so size could be size = input("Enter your shirt size. The available sizes are small, medium, large, or extra-large: ") depending on what you've learned so far, if you want to take it a step further, you can set a conditional statement that catches if the user enters anything besides these sizes if size != 'small' or 'medium' or 'large' or 'extra-large': print("That is not an available size.")

Gucchi:

thank you so much

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!