import sys def make_pi() -> list: # Add your code here. return…
Question Answered step-by-step import sys def make_pi() -> list: # Add your code here. return… Image transcription textPage 1 of 2 ZOOM + Lab 4 – Lists All code for this lab should be in a file named lab4.py. Exercise 1 Write afunction named make_pi with the following behavior: Return an int array length 3 containing the first 3 digits ofpi, (3, 1, 4 }. make_pi() – [3, 1, 4] Exercise 2 Write a function named reverse3 that takes as input a li… Show more… Show moreimport sysdef make_pi() -> list: # Add your code here. return answer def reverse3(nums: list) -> list: # Add your code here. return answer def sum2(nums: list) -> int: # Add your code here. return answerdef main() -> int: # You can (optionally) add code here to test your functions. return 0if __name__ == “__main__”: sys.exit(main()) Computer Science Engineering & Technology Python Programming IFT 101 Share QuestionEmailCopy link Comments (0)


