1 parent 8a849ab commit fdff50aCopy full SHA for fdff50a
1 file changed
currency converter.py
@@ -0,0 +1,13 @@
1
+def main():
2
+ print("This program converts US dollars to Pounds Sterling")
3
+ print()
4
+
5
+ dollars = eval(input("Enter amount in dollars: "))
6
7
+ pounds = convert_to_pounds(dollars)
8
9
+ print("That is" , pounds, "pounds. ")
10
11
+convert_to_pounds = lambda dollars: dollars * 0.82
12
13
+main()
0 commit comments