usd_to_baht = 34.40 col_kc_to_bkk = 1 - 0.26 #https://www.expatistan.com/cost-of-living/comparison/kansas-city/bangkok col_bkk_to_kc = col_kc_to_bkk ** -1 offer_mo = 110000 offer_usd = offer_mo * 12 / usd_to_baht print("Offer:\t" + str(int(offer_usd)) + " USD") kc_salary = 75000 kc_salary_bkk_eq = kc_salary * col_kc_to_bkk print("CoL Adjusted US Salary:\t" + str(int(kc_salary_bkk_eq)) + " USD") print("Monthly equivalent salary:\t" + str(round(kc_salary_bkk_eq * usd_to_baht / 12, -4)) + " THB")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question