Guest User

Untitled

a guest
Dec 17th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.06 KB | None | 0 0
  1. def a():
  2. print("Select Currency")
  3.  
  4. print("A-USD to Guatemalan Quetzal")
  5. print("B-USD to Brazilian Real")
  6. print("C-USD to South African Rand")
  7. print("D-USD to European Euro")
  8. print("E-USD to British Pound")
  9. print("F-USD to Russian Ruble")
  10. ex = input("G-USD to Japanese Yen\n")
  11.  
  12. if ex == "A":
  13. ptd = float(input("How much would you like to convert: "))
  14. f= ptd*7.343
  15. print("It is $",f)
  16.  
  17. if ex == "B":
  18. ptd = float(input("How much would you like to convert: "))
  19. f= ptd*3.185
  20. print("It is $",f)
  21.  
  22. if ex == "C":
  23. ptd = float(input("How much would you like to convert: "))
  24. f= ptd*13.722
  25. print("It is $",f)
  26.  
  27. if ex == "D":
  28. ptd = float(input("How much would you like to convert: "))
  29. f= ptd*0.847
  30. print("It is $",f)
  31.  
  32. if ex == "E":
  33. ptd = float(input("How much would you like to convert: "))
  34. f= ptd*0.759
  35. print("It is $",f)
  36.  
  37. if ex == "F":
  38. ptd = float(input("How much would you like to convert: "))
  39. f= ptd*57.574
  40. print("It is $",f)
  41.  
  42. if ex == "G":
  43. ptd = float(input("How much would you like to convert: "))
  44. f= ptd*113.395
  45. print("It is $",f)
  46.  
  47. d = input("Would You like to convert from USD(1) or to USD(2) or Other(3)")
  48. if d == "1":
  49. a()
  50. elif d == "2":
  51. b()
  52. elif d == "3":
  53. c()
  54. else:
  55. print("Did not understand you, GOODBYE!!!")
  56.  
  57. def b():
  58. print("Select Currency")
  59.  
  60. print("A-Guatemalan Quetzal to USD")
  61. print("B-Brazilian Real to USD")
  62. print("C-South African Rand to USD")
  63. print("D-European Euro to USD")
  64. print("E-British Pound to USD")
  65. print("F-Russian Ruble to USD")
  66. ex = input("G-Japanese Yen to USD\n")
  67.  
  68. if ex == "A":
  69. ptd = float(input("How much would you like to convert: "))
  70. f= ptd*0.136
  71. print("It is $",f)
  72.  
  73. if ex == "B":
  74. ptd = float(input("How much would you like to convert: "))
  75. f= ptd*0.314
  76. print("It is $",f)
  77.  
  78. if ex == "C":
  79. ptd = float(input("How much would you like to convert: "))
  80. f= ptd*0.072
  81. print("It is $",f)
  82.  
  83. if ex == "D":
  84. ptd = float(input("How much would you like to convert: "))
  85. f= ptd*1.179
  86. print("It is $",f)
  87.  
  88. if ex == "E":
  89. ptd = float(input("How much would you like to convert: "))
  90. f= ptd*1.316
  91. print("It is $",f)
  92.  
  93. if ex == "F":
  94. ptd = float(input("How much would you like to convert: "))
  95. f= ptd*0.017
  96. print("It is $",f)
  97.  
  98. if ex == "G":
  99. ptd = float(input("How much would you like to convert: "))
  100. f= ptd*0.008
  101. print("It is $",f)
  102.  
  103. d = input("Would You like to convert from USD(1) or to USD(2) or Other(3)")
  104. if d == "1":
  105. a()
  106. elif d == "2":
  107. b()
  108. elif d == "3":
  109. c()
  110. else:
  111. print("Did not understand you, GOODBYE!!!")
  112.  
  113. def c():
  114. print("Select Currency")
  115.  
  116. print("A-Guatemalan Quetzal to Brazilian Real")
  117. print("B-Guatemalan Quetzal to South African Rand")
  118. print("C-Guatemalan Quetzal to European Euro")
  119. print("D-Guatemalan Quetzal to British Pound")
  120. print("E-Guatemalan Quetzal to Russian Ruble")
  121. print("F-Guatemalan Quetzal to Japanese Yen")
  122. print("")
  123. print("G-Brazilian Real to Guatemalan Quetzal")
  124. print("H-Brazilian Real to South African Rand")
  125. print("I-Brazilian Real to European Euro")
  126. print("J-Brazilian Real to British Pound")
  127. print("K-Brazilian Real to Russian Ruble")
  128. print("L-Brazilian Real to Japanese Yen")
  129. print("")
  130. print("M-South African Rand to Guatemalan Quetzal")
  131. print("N-South African Rand to Brazilian Real")
  132. print("O-South African Rand to European Euro")
  133. print("P-South African Rand to British Pound")
  134. print("Q-South African Rand to Russian Ruble")
  135. print("R-South African Rand to Japanese Yen")
  136. print("")
  137. print("S-European Euro to Guatemalan Quetzal")
  138. print("T-European Euro to Brazilian Real")
  139. print("U-European Euro to South African Rand")
  140. print("V-European Euro to British Pound")
  141. print("W-European Euro to Russian Ruble")
  142. print("X-European Euro to Japanese Yen")
  143. print("")
  144. print("1-British Pound to Guatemalan Quetzal")
  145. print("2-British Pound to Brazilian Real")
  146. print("3-British Pound to South African Rand")
  147. print("4-British Pound to European Euro")
  148. print("5-British Pound to Russian Ruble")
  149. print("6-British Pound to Japanese yen")
  150. print("")
  151. print("7-Russian Ruble to Guatemalan Quetzal")
  152. print("8-Russian Ruble to Brazilian Real")
  153. print("9-Russian Ruble to South African Rand")
  154. print("10-Russian Ruble to European Euro")
  155. print("11-Russian Ruble to British Pound")
  156. print("12-Russian Ruble to Japanese Yen")
  157. print("")
  158. print("13-Japanese Yen to Guatemalan Quetzal")
  159. print("14-Japanese Yen to Brazilian Real")
  160. print("15-Japanese Yen to South African Rand")
  161. print("16-Japanese Yen to European Euro")
  162. print("17-Japanese Yen to British Pound")
  163. ex = input("18-Japanese Yen to Russian Ruble\n")
  164.  
  165.  
  166. if ex == "A":
  167. ptd = float(input("How much would you like to convert: "))
  168. f= ptd*0.442
  169. print("It is $",f)
  170.  
  171. if ex == "B":
  172. ptd = float(input("How much would you like to convert: "))
  173. f= ptd*1.869
  174. print("It is $",f)
  175.  
  176. if ex == "C":
  177. ptd = float(input("How much would you like to convert: "))
  178. f= ptd*0.115
  179. print("It is $",f)
  180.  
  181. if ex == "D":
  182. ptd = float(input("How much would you like to convert: "))
  183. f= ptd*0.103
  184. print("It is $",f)
  185.  
  186. if ex == "E":
  187. ptd = float(input("How much would you like to convert: "))
  188. f= ptd*7.832
  189. print("It is $",f)
  190.  
  191. if ex == "F":
  192. ptd = float(input("How much would you like to convert: "))
  193. f= ptd*15.5
  194. print("It is $",f)
  195.  
  196. if ex == "G":
  197. ptd = float(input("How much would you like to convert: "))
  198. f= ptd*2.265
  199. print("It is $",f)
  200.  
  201. if ex == "H":
  202. ptd = float(input("How much would you like to convert: "))
  203. f= ptd*4.389
  204. print("It is $",f)
  205.  
  206. if ex == "I":
  207. ptd = float(input("How much would you like to convert: "))
  208. f= ptd*0.262
  209. print("It is $",f)
  210.  
  211. if ex == "J":
  212. ptd = float(input("How much would you like to convert: "))
  213. f= ptd*0.233
  214. print("It is $",f)
  215.  
  216. if ex == "K":
  217. ptd = float(input("How much would you like to convert: "))
  218. f= ptd*17.761
  219. print("It is $",f)
  220.  
  221. if ex == "L":
  222. ptd = float(input("How much would you like to convert: "))
  223. f= ptd*35.096
  224. print("It is $",f)
  225.  
  226. if ex == "M":
  227. ptd = float(input("How much would you like to convert: "))
  228. f= ptd*0.516
  229. print("It is $",f)
  230.  
  231. if ex == "N":
  232. ptd = float(input("How much would you like to convert: "))
  233. f= ptd*0.288
  234. print("It is $",f)
  235.  
  236. if ex == "O":
  237. ptd = float(input("How much would you like to convert: "))
  238. f= ptd*0.059
  239. print("It is $",f)
  240.  
  241. if ex == "P":
  242. ptd = float(input("How much would you like to convert: "))
  243. f= ptd*0.053
  244. print("It is $",f)
  245.  
  246. if ex == "Q":
  247. ptd = float(input("How much would you like to convert: "))
  248. f= ptd*4.053
  249. print("It is $",f)
  250.  
  251. if ex == "R":
  252. ptd = float(input("How much would you like to convert: "))
  253. f= ptd*7.999
  254. print("It is $",f)
  255.  
  256. if ex == "S":
  257. ptd = float(input("How much would you like to convert: "))
  258. f= ptd*8.636
  259. print("It is $",f)
  260.  
  261. if ex == "T":
  262. ptd = float(input("How much would you like to convert: "))
  263. f= ptd*3.819
  264. print("It is $",f)
  265.  
  266. if ex == "U":
  267. ptd = float(input("How much would you like to convert: "))
  268. f= ptd*16.141
  269. print("It is $",f)
  270.  
  271. if ex == "V":
  272. ptd = float(input("How much would you like to convert: "))
  273. f= ptd*0.894
  274. print("It is $",f)
  275.  
  276. if ex == "W":
  277. ptd = float(input("How much would you like to convert: "))
  278. f= ptd*67.64
  279. print("It is $",f)
  280.  
  281. if ex == "X":
  282. ptd = float(input("How much would you like to convert: "))
  283. f= ptd*133.395
  284. print("It is $",f)
  285.  
  286. if ex == "1":
  287. ptd = float(input("How much would you like to convert: "))
  288. f= ptd*9.689
  289. print("It is $",f)
  290.  
  291. if ex == "2":
  292. ptd = float(input("How much would you like to convert: "))
  293. f= ptd*4.282
  294. print("It is $",f)
  295.  
  296. if ex == "3":
  297. ptd = float(input("How much would you like to convert: "))
  298. f= ptd*18.778
  299. print("It is $",f)
  300.  
  301. if ex == "4":
  302. ptd = float(input("How much would you like to convert: "))
  303. f= ptd*1.125
  304. print("It is $",f)
  305.  
  306. if ex == "5":
  307. ptd = float(input("How much would you like to convert: "))
  308. f= ptd*76.003
  309. print("It is $",f)
  310.  
  311. if ex == "6":
  312. ptd = float(input("How much would you like to convert: "))
  313. f= ptd*150.129
  314. print("It is $",f)
  315.  
  316. if ex == "7":
  317. ptd = float(input("How much would you like to convert: "))
  318. f= ptd*0.127
  319. print("It is $",f)
  320.  
  321. if ex == "8":
  322. ptd = float(input("How much would you like to convert: "))
  323. f= ptd*0.0561
  324. print("It is $",f)
  325.  
  326.  
  327. if ex == "9":
  328. ptd = float(input("How much would you like to convert: "))
  329. f= ptd*0.024
  330. print("It is $",f)
  331.  
  332. if ex == "10":
  333. ptd = float(input("How much would you like to convert: "))
  334. f= ptd*0.0147
  335. print("It is $",f)
  336.  
  337. if ex == "11":
  338. ptd = float(input("How much would you like to convert: "))
  339. f= ptd*0.013
  340. print("It is $",f)
  341.  
  342. if ex == "12":
  343. ptd = float(input("How much would you like to convert: "))
  344. f= ptd*1.974
  345. print("It is $",f)
  346.  
  347. if ex == "13":
  348. ptd = float(input("How much would you like to convert: "))
  349. f= ptd*0.064
  350. print("It is $",f)
  351.  
  352. if ex == "14":
  353. ptd = float(input("How much would you like to convert: "))
  354. f= ptd*0.028
  355. print("It is $",f)
  356.  
  357. if ex == "15":
  358. ptd = float(input("How much would you like to convert: "))
  359. f= ptd*0.120
  360. print("It is $",f)
  361.  
  362.  
  363. if ex == "16":
  364. ptd = float(input("How much would you like to convert: "))
  365. f= ptd*0.007
  366. print("It is $",f)
  367.  
  368. if ex == "17":
  369. ptd = float(input("How much would you like to convert: "))
  370. f= ptd*0.006
  371. print("It is $",f)
  372.  
  373. if ex == "18":
  374. ptd = float(input("How much would you like to convert: "))
  375. f= ptd*0.505
  376. print("It is $",f)
  377.  
  378.  
  379. d = input("Would You like to convert from USD(1) or to USD(2) or Other(3)")
  380. if d == "1":
  381. a()
  382. elif d == "2":
  383. b()
  384. elif d == "3":
  385. c()
  386. else:
  387. print("Did not understand you, GOODBYE!!!")
  388.  
  389.  
  390. print("Welcome to the Currency Exchange")
  391.  
  392. d = input("Would You like to convert from USD(1) or to USD(2) or Other(3)")
  393. if d == "1":
  394. a()
  395. elif d == "2":
  396. b()
  397. elif d == "3":
  398. c()
  399. else:
  400. print("Did not understand you, GOODBYE!!!")
Add Comment
Please, Sign In to add comment