Home /
Expert Answers /
Computer Science /
in-python-nbsp-write-a-python-program-that-consists-of-two-functions-1-input-2-numbers-return-pa841
(Solved): in python Write a Python program that consists of two functions: 1) input_2_numbers(): return ...
in python
Write a Python program that consists of two functions: 1) input_2_numbers(): return the two positive integer. 2) display_LCM \( (x, y) \) : calculate the Least Common Multiple (LCM) of the two integers, and print the result. Submit the script file (name.py) by the end of Sat 13-8
//CODE in PYTHON #import random class in order to generate random integer in function input_2_numbers() import random def input_2_numbers(): x = random.randint(1, 100) #generate random integer between 1 to 100(both included) and assign it to "a"