1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Gnoma [55]
2 years ago
10

Define a function below, posodd_number_filter, which takes a single numerical argument. Complete the function to return accepted

if the input is positive and odd. Otherwise, return rejected.
Computers and Technology
1 answer:
Vaselesa [24]2 years ago
5 0

The program is an illustration of functions.

<h3>What are functions?</h3>

Functions are set of program statements that are executed when called or evoked.

<h3>The main program</h3>

The function written in Python, where comments are used to explain each line of the program is as follows:

#This defines the function

def posodd_number_filter(num):

   #This checks if the function is odd and positive

   if num >0 and num%2 ==1:

       #If yes, this returns Accepted

       return "Accepted"

   #If no, this returns Rejected

   return "Rejected"

Read more about functions at:

brainly.com/question/14284563

You might be interested in
Which setting indents all but the first line of a paragraph by the selected length?
Phoenix [80]

Answer:

Hanging

Explanation:

5 0
3 years ago
Which tasks can Kim complete using the Customize Ribbon dialog box? Check all that apply.
exis [7]

Answer:

Its A, B, C, and F

Explanation:

On edg

5 0
3 years ago
Which wireless communication technology is most likely used when synchronizing device information to an automobile?
seropon [69]
Bluetooth is the most reasonable answer
8 0
3 years ago
Felicity wants to capture the attention of the regular subway commuters in her area though her print advertisements​
mel-nik [20]

Answer: billboard

Explanation:

Plato answer

8 0
3 years ago
List three possible ways a company can process your data through<br> their privacy policy.
Feliz [49]

Answer:

A company will only process your personal data when they have a legal basis for doing so.

The legal basis to process personal data will one of the following:

1.For the performance of contract:  for recruitment process, for human resource management, and to manage those carrying out work on behalf of PI.

2.For legal requirement:  to comply with applicable regulatory obligations and employment law.

3.For their legitimate interests: to administer their website, to manage their donations, to carry out research and investigations and to manage volunteer.

7 0
3 years ago
Other questions:
  • Why has unicode become the standard way of converting binary to text??
    8·1 answer
  • Forms often allow a user to enter an integer. Write a program that takes in a string representing an integer as input, and outpu
    9·1 answer
  • Antivirus software installed to scan and monitor malware activities on a server or workstation would be identified as a ________
    8·1 answer
  • What is 8 hours, 5 minutes, 22 seconds minus (-) 7 hours, 24 minutes, 37 seconds?
    6·1 answer
  • Issues with paper based records include a. time spent re-keying data, searching for paper copies, and filing. b. storage volume
    9·1 answer
  • A(n) _________ is a computer system which is part of a larger system which performs a dedicated function.
    8·1 answer
  • Which statement is true about the purpose of a work in process constraint?
    15·1 answer
  • Alguien me puede ayudar a arreglar mis auriculares que mi perro rompió en el conector
    5·1 answer
  • How has music changed with the use of technology?
    14·1 answer
  • Why are Quick Parts useful in an Outlook message?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!