Please help me get this code working that i haven't posted yet - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: Please help me get this code working that i haven't posted yet (/thread-18573.html) |
Please help me get this code working that i haven't posted yet - damnit - May-22-2019 'Write a program that has 3 variables (a, b and c). a = 12 and b = 6. c should be equal to a plus b. The program should print c.' HOW? How would you do it pls. i tried a lot but its not working RE: HELP FOR A NUB - PappaBear - May-22-2019 Well, assuming this is for school... otherwise you'd provide code... but let's get you "thinking" :-) variable a = 12 b = 6 then we want to add them and assign them to c c = a+b then of course we'd want to print them print © RE: HELP FOR A NUB - damnit - May-22-2019 a=12 b=6 c=a+b print (c) RE: Please help me get this code working that i haven't posted yet - Yoriz - May-22-2019 Thank you for posting your code in code tags, what result do you get ? and if you get any errors please show the full error in error code tags |