Calculations and New Job
March 09, 2018
Started a new job today. Wrapping up this week's work with Python revision, so here's a simple division calculator using (float(raw_input(">"))) to get user input. I also use \n to create clean lines when terminal gives you the results.
def division(value_1, value_2):
print "\nDividing %d / %d\n" % (value_1, value_2)
return value_1 / value_2
value_1 = (float(raw_input(">")))
value_2 = (float(raw_input(">")))
result = division(value_1, value_2)
print "\nThe answer is %d.\n" % (result)
Recent Entries
- Unarchived Memories December 17, 2025
- Fixing CloudFront HTTP/2 Configuration December 15, 2025
- Packets to a Silent Modem December 14, 2025