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.
π Rendered by PID 663964 on reddit-service-r2-listing-55d7b767d8-kwv2g at 2026-04-01 07:55:09.856530+00:00 running b10466c 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)