You wrote a program to find the factorial of a number. In mathematics, the factorial operation is used for positive integers and zero. What does the function return if the user enters a negative three? def factorial(number): product = 1 while number > 0: product = product * number number = number - 1 return product strNum = input("Enter a positive integer: ") num = int(strNum) print(factorial(num))
-6
1
-3
There is no output due to a runtime error.

Answers

Answer 1

Answer: well it’s not “There is no output due to a runtime error”

Explanation: Put that and I got it wrong

Answer 2

The Answer Is 1.

Edge 2020.


Related Questions

Where do high tides occur? (Select two.)
WILL GIVE BRANLEST PLS ASAP

only at the South Pole

on the side of Earth opposite the moon

on the side of the Earth facing the moon

only at the North Pole

at both the North and South Poles

Answers

Answer: The Moon's gravitational pull generates something called the tidal force. The tidal force causes Earth—and its water—to bulge out on the side closest to the Moon and the side farthest from the Moon. These bulges of water are high tides. High tide (left) and low tide (right) in the Bay of Fundy in Canada.

Explanation:

So the two I think will be 1. On the side of the earth facing the moon and I think both south and North Pole

Use the factorial operation to evaluate 4!.

24

1

4

10

Answers

Answer:

4! = 4 x 3 x 2 x 1

= 24

Answer is 24.

Answer:

24

Explanation:

EDGE 2022

Businesses with very large sets of data that need easy access use sets of cartridges with robot arms to pull out the right one on command.This is known as______.

a.
removable hard drives
b.
smart cards
c.
mass storage
d.
USB drives

Answers

Answer:

C. Mass Storage

if incorrect then:

A. Removable Hard Drives

what is the depth of the following tree?

Answers

Answer:

The correct answer to this question is given below in the explanation section.

Explanation:

This given tree has four nodes. Node A is a parent node in this tree, while B, C, and D are child nodes of A.

The given options about the depth of the tree are:

A). 0B). 1C). 2D). 3

The correct option to this question is (B) i.e. the depth of this tree is 1.

Because we know that the depth of a node M in the tree is the length of the path from the root of the tree to M. So, in this case,  the depth of node A to node B, C, and D  is 1. So, the correct option to this question is B. i.e the depth of the given tree is 1.

Select all actions you should take to check for mistakes in your formulas.

1. Check that you entered the correct data.
2. Look to see that you used the correct cell names.
3. Recalculate everything using a calculator.
4. Run a formula checker.
5. Make sure you have followed the correct order of operations.
6. Check that you used the correct operations.
7. Estimate the answer and compare to the actual answer.

Answers

Answer:

The correct options is;

Run a formula checker

Explanation:

In order to check if there are mistakes in a formula, the Error Checking dialogue box which is a tool that enables a user to rapidly detect and correct errors in formulas, can be made use of to both simplify, expedite, and streamline the process

The Error Checking dialogue box has the following commands controls;

Help on This Error; The control button brings up the help window in Microsoft Excel

Show Calculation Steps; The control starts the Evaluate Formula dialog box from which the effect of the data input values, operators and result of each step can be seen

Ignore Error; The button allows an error to be ignored

Edit in Formula Bar; Allows for the input into the formula in the Formula Bar which is much easier than editing the formula in the cell

Options; The command allows the user to view the Microsoft Excel dialog box menu

Answer:

Run a formula checker. ✔

Check that you used the correct operations. ✔

Check that you entered the correct data. ✔

Explanation:

Got it right on Edge 2022.

An archiving department is responsible for issuing permissions for use of historical film footage.

Answers

Answer:

true

Explanation:

just finished the assignment.

Which program will have the output shown below?

10
11
12
13

>>> for count in range(14):
print(count)

>>> for count in range(10, 14):
print(count)

>>> for count in range(13):
print(count)

>>> for count in range(10,13):
print(count)

Answers

Answer: >>> for count in range(10, 14):

   print(count)

Explanation:

just took the test on edg

Answer

The answer is A. Hope this helps you out. Have a wonderful day and stay safe.

Explanation:

anyone 13 i a boy 13 pan

Answers

Answer:

RATED- SUS

Explanation:

Ryo currently earns a monthly salary of $2200. She has been offered a raise of $250 per month. How much more will she earn per year at her new salary?

Answers

Answer:

$3,000 more per year

Explanation:

Since the difference between her old salary and her new salary is $250 per month, then we can simply multiply this amount by the 12 months in a year in order to calculate how much more she will be earning per year on her new salary...

$250 * 12 = $3,000

Therefore, we can see that Ryo will be earning an extra $3,000 more per year with her new raise when compared to her old salary.

what is the difference between MAC address and IP address?
Thanks in advance

Answers

Answer:

MAC Address ensure that physical address of the computer is unique.

IP Address is a logical address of the computer and is used to uniquely locate computer connected via a network.

Using the rule of thirds places items of interest in a photograph along one of the imaginary gridlines or at the point of their intersection.

True
False

Answers

I think the answer is it’s true

Answer: tureee

Explanation::)

JAVA
Write a program that requests the user input a word, then prints every other letter of the word starting with the first letter.
Hint - you will need to use the substring method inside a loop to get at every other character in the String. You can use the length method on the String
to work out when this loop should end.
Sample run:
Input a word:
domain
dmi

Answers

import java.util.Scanner;

public class JavaApplication42 {

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Input a word:");

       String word = scan.nextLine();

       for (int i = 0; i < word.length(); i+=2){

           System.out.print(word.substring(i,i+1));

           

       }

   }

   

}

I hope this helps!

The program is an illustration of loops.

Loops are used to carry out repetition operations; examples are the for-loop and the while-loop.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main {

public static void main(String args[]) {

//This creates a Scanner object

Scanner input = new Scanner(System.in);

//This prompts user for input

System.out.print("Input a word: ");

//This gets input from the user

String userinput = input.nextLine();

//The following iterates through every other character of userinput  

      for(int i =0;i<userinput.length();i+=2) {

//This prints every other characters

          System.out.print(userinput.charAt(i));

}

  }

}

The above program is implemented using a for loop

Read more about similar programs at:

https://brainly.com/question/19104397

I need help please !!!!

Answers

Answer:

Second one

Explanation:

evaluation of ur problems

The resistance in a particular kind of circuit is found using this formula: R1(R2)R1+R2.


Assuming all the variables are non-zero, which line of code will find the value of the resistance?


resistance = (R1 * R2) / (R1 + R2)

resistance = R1(R2) / R1 + R2

resistance = R1(R2) / (R1 + R2)

resistance = R1(R2) / (R1 + R2)

Answers

Answer:

resistance = (R1 * R2) / (R1 + R2)

Explanation:

PYTHON doesn't recognize multiplication like this example >> 3(4)

This is why PYTHON uses this symbol (*)

Mr. King is in an area on the taskbar opening programs he use frequently, what is this area called? Q_____ L_______h.

Answers

Answer:

Microsoft Windows. The default settings for the taskbar in Microsoft Windows place it at the bottom of the screen and includes from left to right the Start menu button, Quick Launch bar, taskbar buttons, and notification area.

Explanation:

What does a file association specify?
A) the software needed to open a file

B) the file’s author

C) the file’s directory path

D) a list of related files

Answers

Answer:

A) the software needed to open a file

Explanation:

The software needed to open a file is specified by file association. Option A is correct.

What is the file association?

A file association in computing links a file with an application that may open it. A file association more frequently links a group of files to the appropriate program. The file association identifies the program required to open a file.

The practice of capitalizing the first letter of each word in a name. Specifies the program that the Windows operating system should use to open the file. Windows' method of associating a program name extension with a file name.

Under this, Extensions are crucial since they inform the computer about the file's icon and the program that may open it. Like, a file with the extension “doc” indicates to your computer that it is a Microsoft Word file.

Therefore, option A is correct.

Learn more about the file association, refer to:

https://brainly.com/question/14287892

#SPJ2

At the start of the school year, Brianna’s history teacher announces that students’ final grades will be weighted based on how they do in three categories: exams (60 percent), final presentation (30 percent), and class participation (10 percent). Which strategy would most likely help Brianna get the best grade? spending more time studying for exams than creating the final presentation splitting her time evenly between studying for exams and creating the final presentation concentrating on creating the final presentation and speaking up in class working hard at participating in class and studying for exams

Answers

Answer:

it is A

Explanation:

did on edge test

Answer:

A

Explanation:

A group of friends go on a holiday to the mountains. On the trip, they take a lot of pictures. One of the friends uploads the pictures on his blog. Which image format is best for uploading photos? The image format is best for uploading photos.

Answers

Answer: PNG

Explanation:

PNG stands for Portable Network Graphics, with so-called “lossless” compression.

A group of friends goes on a holiday to the mountains. The image form that is best for uploading photos is PNG. The correct option is B.

What is the PNG format of the image?

To display high-quality digital images, websites frequently use the PNG file format. PNGs, which were developed to outperform GIF files, provide not just lossless compression but also a significantly wider and brighter color spectrum.

Raster image files come in both JPEG and PNG varieties. This indicates that they are composed of a set number of color pixels.

To display high-quality digital images, websites frequently use the PNG file format. PNGs, which were developed to outperform GIF files, provide not just lossless compression but also a significantly wider and brighter color spectrum.

Therefore, the correct option is B. PNG.

To learn more about the PNG format, refer to the link:

https://brainly.com/question/20293277

#SPJ2

The question is incomplete. Your most probably complete question is given below:

PNG

JPG
JPEG

GIF

to develop vocabulary, a student should increase their

a) use of expression

b) use of punctuation

c) oral reading rate

d) familiarity with sight words

Answers

A because you can decrease the rest and none would make sense. I learned this!!

Which statement correctly defines the function of a servo
motor's drive?
А.
It reverses the polarity of the magnets in the motor to change its direction.
B.
It amplifies the power to speed up the motor and generate more torque.
C.
It provides feedback to the controller about the motor's position and torque.
D
It computes the value of the torque produced for a given electric current.

Answers

Answer:

B . It amplifies the power to speed up the motor and generate more torque

Select the correct answer.
Adrian is organizing a training lecture for his students in various states simultaneously through radio, TV, and the Internet. What is this event
known as?

A. webcast

B. simulcast

C. broadband

D. online lecture

Answers

Answer:

a

Explanation:

a webcast is the answer I think

Keith has data in row 12. However, he would actually like that row to be empty. Keith should _____. A.) double-click on cell A12 and press Backspace B.) highlight row 12 and press Delete C.) use the arrow keys to move to row 12 and press Enter or Return D.) use the mouse to click row 12 and press the space bar

Answers

Answer:

B.)

Explanation:

In order to have that row, empty Keith should highlight row 12 and press Delete. This would delete all of the data in the row without effectively deleting the formulas. Therefore, allowing you to easily reuse the row if you need to add data to it once again. So this would be the best option for Keith as it easily solves the problem that he is having.

What would happen if a program try to access a variable that was to find locally in another part of the program?

Answers

They project would fail aka not succeed

What is the value of the variable moneyDue after these lines of code are executed?

>>> numSodas = 2
>>> costSodas = 1.50
>>> moneyDue = numSodas * costSodas

Answers

Answer:

3.0

Explanation:

To understand why there is a blank decimal, we have to understand that when you add multiply or subtract with a float (in python), the result will also be a decimal, even you use a blank decimal in the equation. A circumstance where the output would just plain 3, you would have to put in the following:

>>>int(moneyDue)

To insure it will output an int. However, it does not use that line of code, thus proving the answer is 3.0.

hope this helped :D

Answer:

3.0

Explanation:

edge

Which of the following is not one of the views available in the PowerPoint application?

Show View
Slide Sorter
Notes Page
Reading Pane

Answers

Answer:

A. Show View

Explanation:

PowerPoint application can be defined as a software application or program designed and developed by Microsoft, to avail users the ability to create various slides containing textual and multimedia informations that can be used during a presentation.

Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.

Basically, the views that are available on the Microsoft PowerPoint application includes;

1. Slide Sorter.

2. Notes Page.

3. Reading Pane.

Hence, show view is not one of the views available in the PowerPoint application.

In an inequality between two numbers, -2.1 is located below the other number on a vertical number line. So, the other number is -2.1. One possible value of the other number is .

Answers

Answer:

-2.0

Explanation:

Given

Number = -2.1

Required

Determine the other number

From the question, we understand that the number is represented on a vertical number.

From bottom to top, numbers on a vertical number line increases.

Since the other number is at the top of -2.1, then we can conclude that this number is greater than-2.1

Hence, possible values are ,-2.0, -1.9, etc.

Answer:

First blank: greater than.

Second bank: -1.5

Explanation:

What is the difference between a displayed result and a formula?
The displayed result is always the same number, but the formula changes.
The formula is always the same as the displayed result, it will always be a simple value.
The displayed result changes as the formula dictates it; it may not be a simple value.
The displayed result and the formula are unrelated.

Answers

Answer:

The displayed result changes as the formula dictates it; it may not be a simple value.

Explanation:

Answer:

The displayed result changes as the formula dictates it; it may not be a simple value.

Explanation:

How many times is the coin tossed?

var heads = 0;
var tails = 0;
var rolls = 100;
for(var i = 0; i < rolls; i++){
if(randomNumber(0,1) == 0){
heads++
} else {
tails++
}
}

Answers

Answer:

100 times.

Explanation:

The code will loop until i is equal to or greater than roles. I starts at zero and increases by one after each toss.

The answer is what the other guy said

Why is it important to turn a filter off when you have found what you are looking for?

A. The items the filter finds will be deleted from Outlook,
B. The filter will keep looking for items based on the criteria.
C. The filter only works in the background when it is turned off
D. The items that were filtered out, including new items, are not visible,

Answers

I think it’s D

Hope it helps :)

Answer:

D -- The items that were filtered out, including new items, are not visible.

Explanation:

Just took the test, hope this helps! :)

Rewritable (write, erase, write again) is known as _______.

a.
CD-R
b.
CD-RW
c.
DVD-R
d.
CD-ROM

Answers

Answer:

c

Explanation:

Other Questions
First person to answer the question completely gets brainliest. Identify and describe two archetypes. Your response should be one paragraph. Discuss why there is a need to cite source? Based on the activity, how will you describe a homogeneous mixture? Where do high tides occur? (Select two.) WILLLL GIVVEEE BBRRAANNLLEESSTTTM PLSS AASSAAPPonly at the South Poleon the side of Earth opposite the moonon the side of the Earth facing the moononly at the North Poleat both the North and South Poles Chelsea is budgeting for her trip to the mall. Shedoes not want to spend any more than $140. Ifshe wants to buy a dress that costs $28.50 andI some shirts that cost $20.75 each, how manyshirts can she buy? Use the inequality to helpsolve the problem.140 > 28.50 + 20.75x Write your own vignette. I'll mark brainliest 1. When waves go from one place to another, they transportA. amplitudeC. frequencyB. wavelengthD. energy what is accuracy, precision, and reproducibility ? and why are they so necessary in conducting/designing experiments why did the author choose to have the misfit shoot the grandma last (commonlit) [A good man is hard to find] A.to let the reader see her chain through her dialogue with the misfit B. to allow her to talk to Misfit into turning himself in to the police C.to give her the chance to teach the misfit about the south D. to allow the reader to see her lack of affection for her family rounding to 1 significant figure, estimate the answers to these questions:a)78 x 92b)615 x 38c)423 x 764 You would find all of the following headings for a graphic organizer to record differences in media for a painting and short story, except: Each pack ..... two books and six pencils. (contain, contains) Which of the following is an example of a body fossil? 1. Dinosaur footprint2. Shell mold3. Ankylosaurs bone4. Petrified wood idl/l mkspdxd,xcl f,v lv,cds.x If a neutral compound is composed of carbon and hydrogen and you know that it has exactly 2 carbons connected by a double bond, how many hydrogens will the compound have? What is a target group? A. Customers who are the focus of an ad B. Consumers who make daily purchases C. Paid volunteers who try out products D. The people who create advertisements Paola and Tom opened a lemonade stand. This week they sold 20 cups of lemonade and received $5 in tips. If they spend $30 on supplies, which inequality could be used to find x, the price of each cup they must sell to make a profit? 80% of teenagers have access to some social media . If you do a random survey of 400 teenagers, what is the probability that between 300 and 340 of them will patronize it. Which of the following best describes how sedimentary rock forms?A Molten rock beneath the surface of Earth cools and becomes solid.B Layers of sedimentbecome compressed over time to form rock.C Chemical processes or changes in pressure or temperature change a rock.D Molten rock reaches the surface and cools to become solid rock. Two parallel lines are crossed by a traversal. What is the value of y?