文件名称:Python for Informatics 代码
文件大小:1KB
文件格式:RAR
更新时间:2021-02-25 15:29:20
Python Informatics
Python for Informatics python代码 hours=raw_input("Hello give me the Hours ") rate=raw_input("give me the Rate ") try: h=int(hours) #i am a commant r=int(rate) except: print "error " quit() def PAY(h,r): if hours <=40 : Pay = h*r else : Pay = r*40+(r*1.5*(h-40)) return Pay print "the Pay is ",PAY(h,r)
【文件预览】:
program
----firstProgram.py(46B)
----try-except.py(192B)
----condition.py(200B)
----ex-try-except.py(298B)
----loop.py(355B)