Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

def print _ age _ elagibility ( name _ first _ person, age _ first _ person, name _ second _ person, age _ second

def print_age_elagibility(name_first_person, age_first_person, name_second_person, age_second_person): # We write function to solve problems in chunks, reuse code and modularize code.
'''Write your function Docstring here''' # Function docstring says what it does.
output ="" # Initialization
# You should write the rest of the code
return output # return your result, don't print
# We use main program to use, test our solution. Sometimes we call it the client or the driver program.
def main():
# collect the input here from the user not from the function.
first_person = input("Please enter the name of one person: ")
# You should write the rest of the code
# print a call to your function above here
# Code below simply runs the main(). Don't worry we will soon learn about this syntax.
if __name__=="__main__":
# call main() here Here is some sample output:
'''
Please enter the name of one person: Craig
Please enter Craig's age: 49
Please enter the name of another person: Luis
Please enter Luis's age: 58
BGiven the names and ages of two people, write a Python program to return if one, both, or neither people are between 18 and 64 years old (inclusive). You must use a logical "and" or "or", and you must return the words "ONE", "BOTH" and "NEITHER" when appropriate. Use a Boolean variable to simplify your code if you can.oth people are between 18 and 64

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions

Question

Give two reasons why PGP compresses messages.

Answered: 1 week ago

Question

What are the objectives of Human resource planning ?

Answered: 1 week ago

Question

Explain the process of Human Resource Planning.

Answered: 1 week ago

Question

Are there any questions that you want to ask?

Answered: 1 week ago