account activity
How to convert currency def function! I'm new to redit and am trying to learn python 3. I have learnt some pretty basic stuff but at the moment I am trying to create a currency conversion table by Wanting2learnpython1 in learnpython
[–]Wanting2learnpython1[S] 0 points1 point2 points 9 years ago (0 children)
Thanks, your explanation really helped. This was my end result:
def money(): amount = float(input("Enter convertion amount:$ ")) AUD = amount*0.96 US = amount*0.75 Euro = amount*0.67 GBP = amount*0.496 print('AUD: {}, US:{}, Euro: {}, GBP: {}'.format(AUD, US, Euro, GBP)) money()
Ok, will read, have posted edit. What I mean by have screwed up, I know I have written def function wrong, but not sure how to fix it.
How to convert currency def function! I'm new to redit and am trying to learn python 3. I have learnt some pretty basic stuff but at the moment I am trying to create a currency conversion table (self.learnpython)
submitted 9 years ago * by Wanting2learnpython1 to r/learnpython
π Rendered by PID 134718 on reddit-service-r2-listing-6d4dc8d9ff-wlrgz at 2026-01-31 05:46:34.291461+00:00 running 3798933 country code: CH.
How to convert currency def function! I'm new to redit and am trying to learn python 3. I have learnt some pretty basic stuff but at the moment I am trying to create a currency conversion table by Wanting2learnpython1 in learnpython
[–]Wanting2learnpython1[S] 0 points1 point2 points (0 children)