Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- def compare(num1, num2):
- #Compare two numbers and result the result
- if (num1 > num2):
- result = "{} is greater than {}".format(num1, num2)
- else:
- result = "{} is lesser than {}".format(num1, num2)
- return result
- a = 7 * 4
- b = 16
- c = (a * b) - a
- if __name__ == '__main__':
- print "A={}\nB={}\nC={}".format(a, b, c)
- print "{}\n{}\n{}".format(compare(a, b), compare(b, c), compare(a, c))
- print "Your program is done"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement