Create a python module, call it "one",and write a function "double(n)"that simply doubles the input n. Create another python module,call it "two",and write a function "doubletriple()" that (1) asks...

1 answer below »

Create a python module, call it "one",and write a function "double(n)"that simply doubles the input n.


Create another python module,call it "two",and write a function "doubletriple()" that (1) asks the user for a number; (2) doubles it using the "double" function from the "one" module; and (3) triples it. Then, it should assign the result in a global variable "x" and returns it.


Here is a sample output:



Enter a number: 10



The number 10 doubletripledis 60



print(x)



60

Answered Same DayOct 05, 2021

Answer To: Create a python module, call it "one",and write a function "double(n)"that simply doubles the input...

Nithin answered on Oct 05 2021
130 Votes
def double(n):
return 2*n
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here