Remove both brackets in last line, You are creating a tuple in last statement not making a function call.
2013/9/20 Sam <anasdah...@gmail.com> > hi everybody i am just starting to learn python, i was writing a simple > i/o program but my print statement is acting weird. here is my code i want > to know why it prints this way. thank you > > > car=int(input("Lamborghini tune-up:")) > > rent=int(input('\nManhatan apartment: ')) > > gifts=int(input('\nRandom Gifts: ')) > > total=car+rent+gifts > > print("\nThe total amount required is ", total ) > > > OUTPUT > > Lamborghini tune-up:1000 > > Manhatan apartment: 2300 > > Random Gifts: 234 > ('\nThe total amount required is ', 3534) > > > > ===> the problem is obviously on the last print statement that is supposed > to print the outut > -- > https://mail.python.org/mailman/listinfo/python-list > -- Emiliano Carlos de Moraes Firmino Desenvolvedor | PMT | INdT Universitário | Engenharia da Computação | UEA emiliano.firm...@gmail.com | (92) 9196-3922
-- https://mail.python.org/mailman/listinfo/python-list