dimanche 13 septembre 2020

User Input if/elif output fixed information

Basically I am struggling to figure out how to best do an output statement based on the user input.

I want to run code that asks the user the name of a client and returns if it matches a certain name a particular piece of information and if the name is another name returns different information which I believe would be done via the ELIF statement but I am not sure and had issues running it like that before, any advice is appreciated...

client = input("Who is the client: ")
if client == "Jason"
print("Age: 26, Work: Marketing, Office: LA")

Aucun commentaire:

Enregistrer un commentaire