Answer to Question #253369 in Python for Codee

Question #253369

Enter your name: Hunter Chase Sanford

Enter your course: I.T

Enter your year and section: 2-A

Enter the academic year: 2021-2022

Enter first number: 6

Enter second number: 2

Hello, Hunter Chase Sanford! You are currently enrolled in I.T 2-A, A.Y. 2021-2022.

The sum is: 8

The difference is: 4

The product is: 12

The quotient is: 3


1
Expert's answer
2021-10-19T05:02:36-0400
name = input('Enter your name: ')
course = input('Enter your course: ')
ys = input('Enter your year and section: ')
ay = input('Enter the academic year: ')
n1 = int(input('Enter first number: '))
n2 = int(input('Enter second number: '))
print(f'Hello, {name}! You are currently enrolled in {course} {ys}, A.Y. {ay}.')
print(f'The sum is: {n1 + n2}')
print(f'The difference is: {n1 - n2}')
print(f'The product is: {n1 * n2}')
print(f'The quotient is: {int(n1 / n2)}')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS