From 8e5f9597bc99f288b7bd31a40a45739ce767265f Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Fri, 8 Jan 2021 20:40:15 -0500 Subject: [PATCH] Add 1.10 --- 1/1.10 Lab Warm Up/warm_up/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 1/1.10 Lab Warm Up/warm_up/main.py diff --git a/1/1.10 Lab Warm Up/warm_up/main.py b/1/1.10 Lab Warm Up/warm_up/main.py new file mode 100644 index 0000000..562ad05 --- /dev/null +++ b/1/1.10 Lab Warm Up/warm_up/main.py @@ -0,0 +1,9 @@ +if __name__ == '__main__': + num1 = int(input('Enter integer:\n')) + + print('You entered: {0}'.format(num1)) + print('{0} squared is {1}'.format(num1, num1 ** 2)) + print('And {0} cubed is {1} !!'.format(num1, num1 ** 3)) + num2 = int(input('Enter another integer:\n')) + print('{0} + {1} is {2}'.format(num1, num2, num1 + num2)) + print('{0} * {1} is {2}'.format(num1, num2, num1 * num2))