dimanche 23 mai 2021

How to use input inside of print in If Statement in python [closed]

How to make this work

pizza = 5
Burger = 2
kbab = 2
price = 10
total = price

order = input('what is your order: ')

if order == 'pizza':
    print(input('pizza price is ' + pizza + 'Ok?'))

How to use the input inside if statement

And if they said yes or no they will go to the next Question depend on the last Question

Aucun commentaire:

Enregistrer un commentaire