Merge Week 1 #1
9
1/1.10 Lab Warm Up/warm_up/main.py
Normal file
9
1/1.10 Lab Warm Up/warm_up/main.py
Normal file
@@ -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))
|
||||||
Reference in New Issue
Block a user