def main(): print("***Add pay rates***\n") pr_name = input("\nPlease enter the name of the new payrate: ") reg_rate = input("\nEnter the standard rate: ") ot_rate = input("\nEnter the OT rate: ") dt_rate = input("\nEnter the DT rate: ") pay_rate1 = [pr_name, reg_rate, ot_rate, dt_rate] print pay_rate1 print pay_rate1[0] + ":\n$" + pay_rate1[1] + "\n$" + pay_rate1[2] + "\n$" + pay_rate1[3] test = pay_rate1[0].replace("\n", "") if test == "ems": print "Sucess!" else: print "Failed!" if __name__ == "__main__": main()
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