First of all, the print statements should be indented, and the last if statement should be x % 2 == 1 inside of the parentheses.
Other than those few mistakes, the output of the program when the user types in 9 is:
A
C
and whatever the last thing is in the final if statement.
I hope this helps!
Answer:
The reliability and trustworthiness of data throughout its lifecycle.
Explanation:
In its broadest use, data integrity refers to the accuracy and consistency of data stored in a database, data warehouse, data mart or other construct.
Business owners and managers may first balk at the idea of mobile officer workers because there may appear to be a lack of ___ when employees are not sitting at a desk in the office
Lack of control, supervision (I.e. micro-management lol).
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
Answer:
Part a: The program will print 3.
Part b: The program will print 4
Part c: The program will print 1.
Explanation:
Part a: As the scoping is static, the x integer has a value of 1 and the y integer has a value of 2 so the addition is 2+1=3.
Part b: As the scoping is dynamic with deep binding, the x integer has a value of 2 and the y integer has a value of 2 so the addition is 2+2=4.
Part c: As the scoping is dynamic with shallow binding, the x integer has a value of 1 so it will print 1.