Print statement not printing as it suppose to

Sam anasdahany at gmail.com
Fri Sep 20 17:57:30 EDT 2013


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



More information about the Python-list mailing list