import sys def add(a: int, b: int) -> int: # Add your code here….

Question Answered step-by-step import sys def add(a: int, b: int) -> int: # Add your code here…. import sysdef add(a: int, b: int) -> int: # Add your code here. return sum def subtract(a: int, b: int) -> int: # Add your code here. return difference def multiply(a: int, b: int) -> int: # Add your code here. return product def divide(a: int, b: int) -> float: # Add your code here. return quotient def integer_divide(a: int, b: int) -> int: # Add your code here. return integer_quotientdef main() -> int: # You can change a and b a = 1 b = 2 print(“a:”, a) print(“b:”, b) print(“Sum:”, add(a, b)) print(“Difference:”, subtract(a, b)) print(“Product:”, multiply(a, b)) print(“Quotient:”, divide(a, b)) print(“Integer quotient:”, integer_divide(a, b)) return 0if __name__ == “__main__”: sys.exit(main())Image transcription textPDE Lab 1 – Introduction to Python.pc X Microsoft Edge X + X -> GA @ File |C:/Users/Marrk/Downloads/Lab%201%20-%20Introduction%20to%20Python.pdf Not syncing 1 of 1 Q Lab 1 -Introduction to Python All code for this lab should be in a file named lab1.py. Exercise 1 Set up an … Show more… Show moreĀ  Computer Science Engineering & Technology Python Programming IFT 101 Share QuestionEmailCopy link Comments (0)

Leave a Comment

Your email address will not be published. Required fields are marked *