subject

Complete the function to return the factorial of the parameter. def factorial(number)
product = 1
while number > 0
product = product * number
number = number - 1
product
strNum = input("Enter a positive integer")
num = int(strNum)
print(factorial(num))

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best suited for this?
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Which type of file can be used to import data into a spreadsheet?
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
You know the right answer?
Complete the function to return the factorial of the parameter. def factorial(number)
product...
Questions
question
Mathematics, 22.10.2020 17:01
question
Mathematics, 22.10.2020 17:01
question
Mathematics, 22.10.2020 17:01
question
Physics, 22.10.2020 17:01
question
Mathematics, 22.10.2020 17:01
question
Biology, 22.10.2020 17:01
question
Geography, 22.10.2020 17:01
question
Chemistry, 22.10.2020 17:01
Questions on the website: 13722360