"invalid syntax" for all of my colon's (the ones outside the quotation marks)

4346 views python-3.x
0

list_burger = ["Tofu Burger", "Chicken Burger", "Beef Burger"]

burger_price = int

tofu = list_burger[0]

chicken = list_burger[1]

beef = list_burger[2]

print("(1)", list_burger[0])

print("(2)", list_burger[1])

print("(3)", list_burger[2])

Order = (input("Hello welcome to Burger Palace, What would you like to eat today?: "))

print(Order)

j = (input("What would you like as your side?: "))

d = (input("Would you like a drink?: "))

ds = (input("What Size would you like?: ")

if Order == tofu:
    print (j)
    burger_price = 5.75

if Order == chicken:
    print(j)
    burger_price = 5.25

if Order == beef:
    print(j)
    burger_price = 6.25

answered question

You didn't close a bracket on ds = (input("What Size would you like?: ")

2 Answers

9

You didn't close a bracket on ds = (input("What Size would you like?: ")

posted this
7

You have some libraries already specialized in that kind of output.

For instance: xlab/treeprint

fmt.Println(tree.String())

.
??? one
?   ??? subnode1
?   ??? subnode2
?   ??? two
?   ?   ??? subnode1
?   ?   ??? subnode2
?   ?   ??? three
?   ?       ??? subnode1
?   ?       ??? subnode2
?   ??? subnode3
??? outernode

posted this

Have an answer?

JD

Please login first before posting an answer.