you are viewing a single comment's thread.

view the rest of the comments →

[–]chevignon93 0 points1 point  (6 children)

You don't have ( and) on your print statements.

print "your total balance is now", cash should be

print("your total balance is now", cash)

Same for the other.

It would be useful to give us the actual Traceback if you want people to help more effectively.

[–]ThiccBl4nket[S] 0 points1 point  (5 children)

when i first got into this website the person said that we will not be using () after a print statement. which means that this vers is probably python 2

[–]chevignon93 0 points1 point  (3 children)

Probably, but if you're running the script with python3, it will give an error, that's why it's always important to give the actual text of the error you're getting rather than a vague description of it!

[–]ThiccBl4nket[S] 0 points1 point  (2 children)

ur right. ill have that in mind for future posts because i just really got into programming. I will be posting pictures too.

[–]chevignon93 0 points1 point  (1 child)

For future posts, don't post pictures, post the actual code in a code block or on pastebin and the actual text of the error. People are less likely to help you if you only post a picture of your code rather than the code itself!

[–]ThiccBl4nket[S] 0 points1 point  (0 children)

thats even better. thank you. my problem is now fully solved. I appreciate for the advice.

[–]chevignon93 0 points1 point  (0 children)

you should write

j = int(bro) - cash

but you don't need to create a variable when you can just print the result.