S
Sam
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
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