In python please!! Write the definition of a function named countPos that needs integer values from standard input until there are none left and returns the number that are positive. The function must not use a loop of any kind.

Answers

Answer 1

Answer:

Explanation:

The following code is written in Python it doesn't use any loops, instead it uses a recursive function in order to continue asking the user for the inputs and count the number of positive values. If anything other than a number is passed it automatically ends the program.

def countPos(number=input("Enter number: "), counter=0):

   try:

       number = int(number)

       if number > 0:

           counter += 1

           newNumber = input("Enter number: ")

           return countPos(newNumber, counter)

       else:

           newNumber = input("Enter number: ")

           return countPos(newNumber, counter)

   except:

       print(counter)

       print("Program Finished")

countPos()

In Python Please!! Write The Definition Of A Function Named CountPos That Needs Integer Values From Standard

Related Questions

Drag the tiles to the correct boxes to compete the pairs. Identify the types of chemical reactions occurring in the chemical equations.

Answers

The question is incomplete. The complete question is :

Drag the tiles to the correct boxes to compete the pairs. Identify the types of chemical reactions occurring in the chemical equations.

combustion reaction , photosynthesis , respiration

water + carbon dioxide + sunlight → oxygen + glucose

methane + oxygen → water + carbon dioxide + heat

glucose + oxygen → carbon dioxide + water + energy

Solution :

The chemical reactions that is occurring in the following chemical equations are :

Photosynthesis

water + carbon dioxide + sunlight → oxygen + glucose

Plants uses the light energy from the sun in the presence of water and carbon dioxide produces food by the process of photosynthesis. It produces glucose and oxygen.

Respiration

glucose + oxygen → carbon dioxide + water + energy

The cellular respiration process produces ATP with the breakdown of the glucose and oxygen. During respiration process, carbon dioxide is obtained along with water and energy.

Combustion reaction

methane + oxygen → water + carbon dioxide + heat

Combustion reaction is a chemical reaction in which methane is the main ingredient. Combustion takes place as things burn in the presence to methane and oxygen to form carbon dioxide, water and heat.

What is one difference between low- and high-level programming languages? (5 points)
O a
Ob
Low-level programming languages are challenging for humans to read, while high-level programming languages are easier.
Low-level programming languages are more human-friendly, while high-level programming languages are more challenging for
humans to understand.
Ос
Low-level programming languages require interpreters and compilers, while high-level programming languages do not.
Od
Low-level programming languages use program code to communicate with computers, while high-level programming languages
use machine code.

Answers

Answer: Low-level programming languages are computer code at its most basic. They are difficult or sometimes impossible for humans to read, while high-level languages are designed to be easy for humans to understand. I believe the answer is A.

Answer:

Low-level programming languages require interpreters and compilers, while high-level programming languages do not.

Explanation: I AM SURE IT IS CORRECT 100% CORRECT

This type of peripheral is used to interact with, or send data to, the computer.


Answers

Answer:

Input

Explanation:

Write a Python code to take input of age of three people by user and determine youngest people among them

Answers

Answer:

# Take Ages

person1 = eval(input("Enter age of person 1 : "))

person2 = eval(input("Enter age of person 2 : "))

person3 = eval(input("Enter age of person 3 : "))

# check youngest

if person1 < person2 and person1 < person3:

print("Person 1 is youngest")

elif person2 < person1 and person2 < person3:

print("Person 2 is youngest")

elif person3 < person1 and person3 < person2:

print("Person 3 is youngest")

n
How does an informal outline usually organize information?
A. With letters
B. With bullet points
C. With numbers
D. With Roman numerals

Answers

The answer is (B. With bullet points) have a good day :)

also have a good day people !!

Answers

Answer:

Thx u2!!

Explanation:

Everyone have a good day!

Answer:

You too and thank you for 50 points!!

Explanation:

Betty set up an account on a popular social networking website. She wants to know whether the privacy policy is effective for her account. Which information should she look for in this document?

Answers

the info needed to log in

-This would show what is protected in the privacy policy and its related to you since it would show personal data.

-A good Privacy Policy depends on understanding these matters - showing that this is not an agreement to take for granted.

Why do chloroplasts appear only in plant cells and lysosomes appear only in animal cells?

Answers

Answer:

Both animal and plant cells have mitochondria, but only plant cells have chloroplasts. ... Because animals get sugar from the food they eat, they do not need chloroplasts: just mitochondria.

Find what the secret message is. Get Brainliest if you are fast and correct.

Answers

Answer:

What does your digital footprint say about you?

Explanation:

Just follow the path from the end to the start, that's how I always get mazes.

Answer:

What does your digital footprint say about you?

Explanation:

Which option should have the strongest influence on your choice of system software for your computer?

compatibility of applications software
aesthetics
your friends' opinions
popularity

Answers

Software hope This helps :)

z 1
-- = --
7 21
solve​

Answers

Answer:

[tex]z= \frac{1}{3}[/tex]

Explanation:

Given

[tex]\frac{z}{7} = \frac{1}{21}[/tex]

Required

Solve

[tex]\frac{z}{7} = \frac{1}{21}[/tex]

Multiply both sides by 7

[tex]7 * \frac{z}{7} = \frac{1}{21} * 7[/tex]

[tex]z= \frac{1}{21} * 7[/tex]

Rewrite as:

[tex]z= \frac{1 * 7}{21}[/tex]

[tex]z= \frac{7}{21}[/tex]

Simplify fraction

[tex]z= \frac{1}{3}[/tex]

What is your definition of Digital Safety?

Answers

Answer:

Digital Safety is being knowledgeable in the areas of Internet safety, device security, etc. and keeping yourself safe when using the Internet.

Explanation:

When you know how to stay safe on the Internet and keep yourself safe, you know Digital Safety.

what is a flowchart and write it's work​

Answers

Answer: A flowchart is a type of diagram that represents an algorithm, workflow or process. The flowchart shows the steps as boxes of various kinds, and their order by connecting the boxes with arrows. ... Flowcharts are used in analyzing, designing, documenting or managing a process or program in various fields.

Explanation: brainliest plz!

How do I break CPU pins

Answers

Answer:

grab them with fingertips or insert the board at wrong angle

Explanation: According to Guinness, “Rap God” by Eminem (USA) packs 1,560 words into a fast and furious 6 min 4 sec – that's a tongue-twisting average of 4.28 words per second!

using clipers or tweezers can help you in bending the pin in the right way to snap it

-scav

9.6 Code practice Edhesive

Answers

Answer:

N = [1,1,1,1,1],

[2,2,2,2,2],

[3,3,3,3,3],

[4,4,4,4,4]

def printIt(ar):

   for row in range(len(ar)):

       for col in range(len(ar[0])):

           print(ar[row][col], end=" ")

       print("")

           

N=[]

for r in range(4):

   N.append([])

   

for r in range(len(N)):

   value=1

   for c in range(5):

       N[r].append(value)

       value=value + 1

           

printIt(N)

print("")

newValue=1

for r in range (len(N)):

   for c in range(len(N[0])):

       N[r][c] = newValue

   newValue = newValue + 1

       

printIt(N)

Explanation:

I got 100%.

In this exercise we have to use the knowledge of computational language in python to write the code.

We have the code in the attached image.

The code in python can be found as:

def printIt(ar):

  for row in range(len(ar)):

      for col in range(len(ar[0])):

          print(ar[row][col], end=" ")

      print("")        

N = [1,1,1,1,1], [2,2,2,2,2], [3,3,3,3,3], [4,4,4,4,4]

for r in range(4):

  N.append([])

for r in range(len(N)):

  value=1

  for c in range(5):

      N[r].append(value)

      value=value + 1

printIt(N)

print("")

newValue=1

for r in range (len(N)):

  for c in range(len(N[0])):

      N[r][c] = newValue

  newValue = newValue + 1

printIt(N)

See more about python at brainly.com/question/26104476

We cannot imagine a life without the Internet. Imagine that you had to live without being connected to the Internet. Discuss the challenges you would face in such a scenario.

Answers

Answer:

Explanation:

Everything runs on the internet nowadays. Living without internet would bring many challenges. One of which would be difficulty making purchases. It is not always easy to find what you need close by which is why the majority of commerce nowadays is done through the internet. Another difficulty would be the lack of information, not being able to quickly search for something. Lastly, and probably the most important is the lack of communication. Without internet, you would lose contact with many loved ones around the world and would be limited to telephone communication.

Arranging a given set of data in ascending or descending order is ...................​

Answers

Explanation:

maybe it's answer is sorting

Scanning devices translate information processed by the system unit and present the information
on paper

Answers

Answer:

True

Explanation:

It is TRUE that Scanning devices translate information processed by the system unit and present the information on paper.

This is because the scanning device otherwise referred to as a scanner uses Optical Character Recognition software to capture the scanned document which is then processed into files accessible by predefined application, such as image viewer

Graphics created within Illustrator CC are always vector graphics true or false

Answers

True we use illustrator to draw vectors and vectors only

why? they are infinitely  scalable

Hope this helps.

-scav

The introduction of the 8-bit computer expanded the number of bytes available for encoding. This led to the development of

Answers

It led to the development of octets.

Answer: It's D: Unicode on Edge

Explanation:

In the late ’80s, developers from Xerox and Apple worked on the explicit goal of unifying the various encoding systems into one universal character set. The result is Unicode, a character encoding system that can represent text written in all of the world’s languages and scripts. Unicode assigns a unique code point, an integer value denoted in base 16, to each character in the world’s languages. Applications such as web browsers or word processors “read” the Unicode, and then render the correct character according to the application’s own programming for font, size, and style.

write a program. in QBAsSIC
a to find product of two numbers
b to calculate sum of two numbers
c to calculate difference between two numbers
computer q qubasic can anybody help me plz​

Answers

Answer:

The program is as follows:

5 INPUT A,B

6 PROD = A * B

7 PRINT PROD

8 TOTAL = A + B

9 PRINT TOTAL

10 DIFF = A - B

11 PRINT DIFF

12 END

Explanation:

This gets input for the two numbers

5 INPUT A,B

This calculates the product

6 PROD = A * B

This prints the calculated product

7 PRINT PROD

This calculates the sum

8 TOTAL = A + B

This prints the calculated sum

9 PRINT TOTAL

This calculates the difference

10 DIFF = A - B

This prints the calculated difference

11 PRINT DIFF

This ends the program

12 END

Which of the following are considerations in e-commerce and e-government Internet sites? Check all of the boxes that apply.

security

what time of day you are online

protection of sensitive information

from which location you are accessing the site

Answers

Answer:

protection of sensitive information

Explanation:

Answer:

a c baka baddies

Explanation:

You are the network administrator for a city library. Throughout the library, there are several groups of computers that provide public access to the internet. Supervision of these computers has been difficult. You've had problems with patrons bringing personal laptops into the library and disconnecting the network cables from the library computers to connect their laptops to the internet. The library computers are in groups of four. Each group of four computers is connected to a hub that is connected to the library network through an access port on a switch. You want to restrict access to the network so only the library computers are permitted connectivity to the internet. What can you do to fix this problem

Answers

Answer: Configure port security on the switch

Explanation:

Since there need to be a restriction on access to the network so that the library computers will be the only ones that are allowed connectivity to the internet, the thing that can be done to fix the problem is to configure a port security on the switch.

When a port security is configured, it helps in securing the network and this will in the prevention of unknown devices from being connected to the network.

Kim is creating a PowerPoint presentation about the life cycles of different organisms. Knowing that her file will include a number of images, technical terms, and scientific names, she decides to customize the ribbon to make her work more efficient. To do this, she must access the PowerPoint Options dialog box.

How should Kim begin this task?
by clicking the Home tab and selecting Editing
by clicking the File tab and selecting Options
by clicking the View tab and selecting Master Views
by clicking the Help tab and selecting Help & Support

Answers

Answer: Clicking on file tab and selecting options, if she has issues contact Help & Support.

Hope it helped!

Answer:

by clicking the File tab and selecting Options

Explanation:

A man-in-the-middle attack or impersonation are likely to result in problems with

data availability.

data confidentiality.

data integrity.

data mining.

Answers

Answer:

Data Confidentiality

Explanation:

A Man-In-The-Middle-Attack (MITM) is an attack when a hacker gets between a communicative situation and digitally eavesdrops.

A man-in-the-middle attack or impersonation is likely to result in problems with data confidentiality. Thus, option B is correct.

What is a  man-in-the-middle attack?

A man-in-the-middle (MITM) attack is a broad name used whenever an abuser inserts himself into a conversation between a user and now an application. That will listen in on the conversation or to pretend to be one of the participants and create the impression that normal information-sharing is taking place.

Attacks compromise the integrity and confidentiality of exchanges, which exposes information, technology, and other things to malevolent use. Consider the threat if a hacker was able to remotely open an automatic door lock or deploy the airbags in a linked car.

Therefore, option B is the correct option.

Learn more about man-in-the-middle attack, here:

https://brainly.com/question/13014110

#SPJ6

Which ribbon tab has the tool that lets you connect your text to a URL?
Home
Insert
Review
Animations

Answers

Answer: Insert

Explanation:

The Ribbon was introduced by Microsoft in 2017 and it's simply a user interface element that can be found below Quick Access Toolbar. The Ribbon consist of seven tabs which are:

• Home

• Insert

• Page layout

• References

• Mailing

• Review

• View.

The Ribbon tab that has the tool that lets you connect your text to a URL is the Insert tab.

In the Menu bar, the person should click on the Insert tab that us in the Links section. After that, click on the Hyperlink or the Link option, then in the Insert Hyperlink window, one can then type addr as of the web page that the person wants to connect the text to after which the leoen will then click OK.

The owner of a hotel has contracted with you to implement a wireless network to provide internet access for guests. The owner has asked that you implement security controls so that only paying guests are allowed to use the wireless network. She wants guests to be presented with a login page when they initially connect to the wireless network. After entering a code provided by the concierge at check-in, guests should then be allowed full access to the internet. If a user does not provide the correct code, he or she should not be allowed to access the internet. What should you do

Answers

Answer:

Have them try again. If it still is wrong then maybe dont let them use the internet!

what method of technical drawing uses converging lines?

Answers

The foundation of linear perspective is the concept of diminution, which states that objects appear to get smaller as they travel farther away from the observer.

What's a good illustration of linear perspective?

The seeming convergence of two parallel lines, particularly when looking at a lengthy section of two-lane highway, is an illustration of linear perspective. People who watch the highway in front of them have the impression that the lanes are converging at the horizon.

One kind of linear perspective is one point perspective. In a flat work of art, linear perspective creates the appearance of space and form by using lines to depict objects. It is a methodical method of drawing. One point perspective, which only uses one vanishing point, earns its name.

There are three forms of linear perspective. One point, two point and three point. When the vanishing point for the objects in your picture is close to the center of the scene, you have one point perspective, which is the simplest sort of perspective.

To learn more about linear perspective  refer to

https://brainly.com/question/22902116

#SPJ1

Which game would be classified as an advergame?
A.
Tomb Raider
B.
Fifa Soccer
C.
Prince of Persia
D.
Flower

Answers

Answer:

B. Fifa Soccer

Explanation:

That should be your answer.

Which of the two previously described wing designs should result in a longer flying time?

Answers

Answer:

If it's a bird than the bigger the wing span the faster it can fly... or possibly glide in the air longer. I think all plan wing sizes don't change the effect of how it goes. If it is something like the sky gliders than yes. It would most likely be in the sky longer.

Other Questions
Please help i cant get this angle1,2 , and angle3 form a straight line. If m angle3 is six more than twice m angle1 m angle2 is 27 less than m angle3 find m angle2 Do you think someone should go to jail for their behavior depicted in the film? Who? Some senior bankers on Walk Street used prostitutes and illegal drugs, sometimes paying with company credit cards. If bringing a criminal fraud case related to subprime loans and CDOs would be too difficult, should prosecutors go after this other behavior. Georgina cooked a 10 1/5 pound turkey in 2 3/5 hours. How many hours per pound did it take to cook theturkey? Express and explain your answer as a unit rate. Which of the following rational functions is graphed below? What was the purpose of the Northwest Territory? A contractor needs to buy nails to build a house. The nails come in small boxes and large boxes. Each small box has 150 nails and each large box has 400 nails. The contractor bought 2 more small boxes than large boxes, which altogether had 1950 nails. Write a system of equations that could be used to determine the number of small boxes purchased and the number of large boxes purchased. Define the variables that you use to write the system. The lower an applicant's credit score, the lower the risk to the lender. True False HELP ME OUT PLEASE! Ongoing behavior that makes fun of someone's gender, disability, religion, nationality, or culture is _________.a) Harassment b) sexual assault c) cyber bullying Click to review the online content. Then answer the question(s) below, using complete sentences. Scroll down to view additional questions.Online Content: Site 1How does Frida Kahlo's work reflect her identity? What are some other themes present in her work? (site 1) he gazed at me a long time as if I were a slot machine which he had without results HELLO AM I BOBO MY BROTHER USE TO CALL ME THAT KASI EH a. Draw a scaled copy of Polygon A with scale factor 1/2. b. Draw a scaled copy of Polygon B with scale factor 2. c. Draw a scaled factor of Polygon C with scale factor 1/4. 54+7x+1 no solution, one soultion, infinte soulition I need help pleaseee!!!!!!!! Fast Hey! please do this I need to get to 100 points to complete the assignment and it's by midnight (12:00). ALSO... if u have time, please explain how to do this that would be great. Johnny went out to dinner with his two friends. Johnnys meaeast $12.32, Marksmeal cost $11.23, and Annas meal cost $7.89. After a tax of 8% and chipsi 5%,What is the total amount of the bill? 1) En el pasado, cmo se celebraba el Da de los Muertos en Mxico? find the center and radius of the circle whos equation is (x+5)^2+(y-3)^2=9 Tertiary Colors are achieved by mixing the primary colors with white and black.Group of answer choicesTrueFalse