<em>ur</em><em> </em><em>answer</em><em> </em><em>hope</em><em> </em><em>this</em><em> </em><em>will</em><em> </em><em>helps</em><em> </em><em>u</em><em /><em /><em /><em /><em />
Answer:
The function in python is as follows
def is_present(num,list):
stat = False
if num in list:
stat = True
return bool(stat)
Explanation:
This defines the function
def is_present(num,list):
This initializes a boolean variable to false
stat = False
If the integer number is present in the list
if num in list:
This boolean variable is updated to true
stat = True
This returns true or false
return bool(stat)
I've included my code in the picture below. Best of luck.
The pseudocode of the program is simply a prototype of the actual program
<h3>How to write the
pseudocode?</h3>
The pseudocode that does the requirements in the question is as follows:
- Start
- Get Input for amount of purchase
- Compute the state tax: sales tax = sales tax percentage * amount
- Compute the provisional sales tax: provisional sales tax = provisional sales tax percentage * amount
- Print the taxes
Read more about pseudocode at:
brainly.com/question/24735155
#SPJ1