Skip to content

Commit 28bf422

Browse files
authored
Update main.py
1 parent 3c76dec commit 28bf422

1 file changed

Lines changed: 1 addition & 35 deletions

File tree

main.py

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1 @@
1-
x=int(input("Amount to Convert :"))
2-
y=input("Convert currency to :")
3-
print(str(x) + " Converting to " + y)
4-
input(" continue ?")
5-
# rate
6-
#USD
7-
d=135
8-
#EUR
9-
e=145
10-
#DH
11-
h=13.5
12-
#SR
13-
s=35
14-
#EGP
15-
g=5
16-
#TND
17-
t=40
18-
#TRY
19-
r=5
20-
if y == "USD":
21-
print(round (x/d))
22-
elif y == "EUR":
23-
print(round (x/e))
24-
elif y== "SR":
25-
print(round (x/s))
26-
elif y== "EGP":
27-
print(round (x/g))
28-
elif y== "TND":
29-
print(round (x/t))
30-
elif y== "TRY" :
31-
print(round (x/r))
32-
elif y== "DH":
33-
print(round (x/h))
34-
print("thank you for using <3")
35-
print("created by : Mehdi ")
1+

0 commit comments

Comments
 (0)