I have a problem I have been dealing for a day or two and I have done every thing in my ability to try and fix it. I have modified the code a little because I noticed at the end of it, the + signs add the variables instead of numbers. My code right now is
Code:
computer_brand = 'Apple'
processor = '1.7 gigahertz i5'
ram = '4'
operating_system = 'Mac OS 10 Lion'
battery_life = '7'
screen_size = '13.3'
the_cost = '1300'
storage_capacity = '128'
print "This is about my %s computer." % (computer_brand)
print "Its a %s computer so it runs %s." % (computer_brand, operating_system)
print "It has a %s processor with %s of ram." % (processor, ram)
print "The battery life is very long with %s hours long battery life, WOW!" % (battery_life)
print "It can store %s gigabyte of files and has a %s inch high resolution screen." % (storage_capacity, screen_size)
print "And it only costed $%s, thats very cheap for a good and high quality %s computer." % (the_cost, computer_brand)
print "If I add %d, %d, and %d I get %d." % (ram, battery_life, screen_size, ram + battery_life + screen_size)
Error: File 9 More Variables.py; line 16
TypeError: %d format: a number is required, not str
I have even copied and pasted line 16 from the tutorial and just changed the variables but it didn't work! Programming is making me extremely frustrated

.
----------
How is Terminal useful? You can only type your codes there and you can't save them. I understand Terminal is useful in other parts of the computer but I don't think this goes for coding. What do you mean by "get more familiar with using emacs/vi instead as those are readily available on any nix machine and available on the mac?"