I need helps on this one. Please answer to the question and requirements, this i
ID: 3752724 • Letter: I
Question
I need helps on this one. Please answer to the question and requirements, this is my second post of the same question. The first one didn't help.
(Note: Addition in formation for this assignment: ask the user for their age and date rule is: you can date people as young as half your age plus seven years old and as old as twice your age minus thirteen.)
Thank you!
.Task Write a file with one function: creepy. creepy should have two arguments, the ages of two people. It should return False if the two may date each other without being creepy, True. See dating.py for a definition of creepy. Return the Boolean values True and False, not the strings "True and "False" Note: it is possible to solve this problem using if, but that is not encouraged. Your function should neither print nor ask for any input. You should not have any code outside of the function. You may assume that we only invoke the function with the younger age 2 14 and the older age in the second position 2. Example Invocations When you run maydate.py, nothing should happen. It defines a function, it does not run it If in another file (which you do not submit) you write the following import maydate print (maydate.creepy (18, 80)) print (maydate.creepy(5e, 8e)) print(type (maydate.creepy(50, 80))) you should get the following output: True FalseExplanation / Answer
# Hello World program in Python
import maydate
def creepy(age1,age2):
maxage=0
minage=0
if age1>age2 :
maxage=age1
minage=age2
else
maxage=age2
minage=age1
if (maxage/2)+7<=minage:
return True
else False