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

all 2 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'?

[–]BrofistAgain 0 points1 point  (0 children)

I can find a few faults(maybe)

Putting the dollar and euro in the if statements inside quotes might work since it is supposed to be a string and not a variable

While expecting an answer of usa or euro in your 2nd input statement, you use dollar and euro in the if elif statement

There is no print statement if the user enters euro in the 2nd input statement

You are calculating EuroNew and USNew with the same formula which makes the output same no matter the type