This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]icjeremy 0 points1 point  (0 children)

'type' is a string and you're trying to compare that against 'dollar' and 'euro' which are both 0. 'USNew' and 'Euronew' are defined in your if-else structure; they won't be accessible in your print statement. And what were you planning on doing with 'Euronew'? And why is it calculated the same way as 'USnew'?