How can I print the following lines of code but get a floating point number of of it instead of a rounded int?
print “Math Question: “, 100 – 25 * 3 % 4
print 3 + 2 + 1 – 5 + 4 % 2 – 1 / 4 + 6
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Division with
/in 2.x results in a integer if both operands are integers. Either cast one of the operands to a float first, orfrom __future__ import division.