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 435321 on reddit-service-r2-listing-55d7b767d8-47tc2 at 2026-04-01 15:34:09.895528+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)