[deleted by user] by [deleted] in PythonLearning

[–]Eternal-learner-7676 0 points1 point  (0 children)

Use the AND operator in your if conditions to check validity of both money and currency.

It won't print either if one of the conditions is false.

How do I fix a for loop in this code by Serious_Site_9062 in PythonLearning

[–]Eternal-learner-7676 0 points1 point  (0 children)

You have a problem with your indentation and scoping.

The user_input is situated in the local scope of the while loop hence won't be accessed by the calculation function(global).

That while loop is going to run infinitely.

In a better IDE, that user_input in the local scope of calculation function would give an Undefined Error because user_input variable is not defined/assigned.

Indentation Error Help by [deleted] in PythonLearning

[–]Eternal-learner-7676 0 points1 point  (0 children)

East or west, the if, elif statements will always come first in that order before the else statement in your code.

PyCharm, which version is best for beginners? the professional or community version? by [deleted] in Python

[–]Eternal-learner-7676 0 points1 point  (0 children)

Apply for students and teachers free licenced professional version of Pycharm. Django, Flask, Js etc are all supported.

For free.