Re: Python and Functions

You can do something like this:

hours=float(raw_input("How many hours have you worked?"))
income=((rate*(hours-(hours-40))+(1.5*rate*(hours-40))*(hours>0==True))


That is going to fail if you use a non-numeric value for hours though.

URL: http://audiogamesforum.captivatingsound.com/viewtopic.php?pid=174508#p174508

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Reply via email to