Question: Here is my program named myFirstFunctions.py: def myfunc 1 ( is _ true ) : if is _ true: print ( Yes )
Here is my program named myFirstFunctions.py:
def myfuncistrue:
if istrue:
printYes
else:
printSorry No
def myfuncweather:
if weather "windy":
return Please put on a jacket."
if weather "sunny":
return Enjoy this beautiful day."
if weather "rainy":
return Lets play Scrabble."
def myfunca b c:
if c :
return a b
else:
return a b
def myfuncarg arg:
return arg arg
def squarenumber:
return number
if namemain:
myfuncFalse
weather myfuncrainy
printweather
result myfunc
printresult
greater myfunc
printgreater
number square
printfThe square of is: number
How do I perform the second part of my assignment:
Create another Python program named applicationpy
This program imports the myFirstFunctions,py module.
Add a main function.
Create scenarios where application uses several functions in myFirstFunctions and completes simple tasks.
Place these calls in the main function.
Incorporate the use of the name variable in both programs.
Apply a good programming style.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
