Hi there, I'm new to Python and programming in general.
This is the function I am writing: def function(): x = int(raw_input("Enter value of x: ")) y = int(raw_input("Enter value of y: ")) z = x / y print "The value of z is", z, "unit of measurement" Now, say, user input: x = 200 y = 1000 The value returned will be '0'. My question: What is the proper way of writing the operation so that if z = x /y, the result would be '0.20' instead of just '0'? TIA. -Miguel _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor