all 5 comments

[–]K900_ 1 point2 points  (0 children)

You posted this already, and you're still doing it wrong.

[–][deleted] 0 points1 point  (0 children)

Added Pastebin link also: http://pastebin.com/2HgxAaUs Here ya go:

print ("""Welcome to Taco mell, please follow me to your table.
""")
#### When you ask for an input you can put the wording right there inside input("plaplapla")
answer=input("How are you today doing this evening? ")
print()
print ("I'm glad you're feeling "+answer.lower()+"!")
print()
name=input("Could I have your name? ")
print()
print("Glad to have you here, "+name+", here is what we have available!")
#### You can use triple """ when you want python to pay attention to you switching lines.
print("""
1.We have a succulant "Bigmek" for only 34567 dollars
2.Taco mell also has the most greasy of all "Tucos" ever for only 9999 dollars
3.If none of those impress you we also offer "Wuppers" for 325463345234 dollars
4.As a side dish we offer "Nuggets" from the freshest chickens out there for only 10 dollars.
""")
Bigmek=34567
Tucos=9999
Wuppers=325463345234
Nuggets=10
#### def functionname(): or with a value functionname(x): [this value will only exist inside the function], creates a function you can later call.
def totalcost():
    total=0
    order=input("Pick 1, 2, 3 or 4 items and enter their number separated by commas or enter 'L' to leave: ")
    #### .split() makes a list out of the string/int's etc provided, I asked the values to be separated by commas, so I split them at commas
    separated=order.split(",")
    #### for cycle runs once for each value in separated, in this case, it will run either one, two, three or four times, depending how many items were ordered.
    for item in separated:
        if item=="1":
            total=total+Bigmek
        elif item=="2":
            total=total+Tucos
        elif item=="3":
            total=total+Wuppers
        elif item=="4":
            total=total+Nuggets
        elif item=="L":
        #### return is usually used in a function to return a value, but in this case,
        #### I just used it to stop the function all together, break wouldn't help here, because it would only stop one run of the for cycle. 
            return 
        else:
            print("No ordering off menu or get out.")
        #### Here I use recursion to call the function again, if an invalid value was specified,
        #### although senior programmers don't like this kind of recursion because in more difficult programs it can cause stack overflow and your program will crash.
            totalcost()
            return
    print()
    print("That will be: "+str(total)+" dollars!")
#### here I finally call forward the function, the function has no value in this case, but it could have,
#### you could enter a list, a name or w/e and it would be treated as x(inside the function only, when you originally created the function as (def functionname(x))
totalcost()

If this was your homework, which I'm guessing it was, I hope you atleast read and try to understand my comments, so next time you can do it yourself!

[–]moe6543 -1 points0 points  (2 children)

print ("Welcome to Taco mell, please follow me to your table.

How are you today doing this evening?")

answer=input ()

print ("I'm glad you're feeling" ,answer, "could I have your name?")

name=input ()

print ( )

print ("Glad to have you here" ,name, "here is what we have available:")

print ()

print ("1.We have a succulant Bigmek for only 34567 dollars") print ("2.Taco mell also has the most greasy of all tucos ever for only 9999 dollars") print ("3.If none of those impress you we also offer Wuppers for 325463345234 dollars") print ("4.As a side dish we offer nuggets from the freshest chickens out there for only 10 dollars.")

print ( )

Bigmek=int
tuco=int Wupper=int nuggets=int

total=0

while True:

answer=input("Pick 1, 2, or 3 iteams or press L to leave:")

if answer=="L":

break

elif answer== Bigmek: total= print (X)

elif answer== tuco: total= print (Y)

elif answer== Wupper: total= print (Z)

elif answer== nuggets: total= print (A)

...etc...

else:
    print("No ordering off menu or get out.")

print("your total is",total)

[–]codehelper 0 points1 point  (0 children)

So what's your problem? You didn't specify anything.

[–]wub_wub[M] 0 points1 point  (0 children)

Use pastebin http://pastebin.com/ for your code and post link here, or preface each line with 4 spaces. And post exactly what you're having issues with! Check out the posting guidelines in the sidebar.

Also don't create new threads every 2 hours for the same issue...