subject

Copy andpaste this into this linkhttps://www. programiz. com/python-programming/online-compi ler/ then answer the questions below. Will give brainliest if you do it correctly def myFunction():
a = int(input("Type in a number. "))
b = 1
for i in range(1, a + 1, 1):
b *= i
c = 0
for j in range(1, a + 1, 1):
c += j
d = 1
myTuple = (b , c)
return myTuple

x = myFunction()
print(x[0])
print(x[1])
print(x[-1])
print(x[-2])
tuple2 = 3 * x
print(tuple2)

1. What is the value of x[1] when the user types in 5?
2. What is the value of x[0] when the user types in 8?
3. What is the value of x[-1] when the user types in 4?
4. WHat is the value of tuple2[4] when the user types in 7?
5. Add a line that has tuple3 = x + tuple2. What is the value of tuple3[5] when the user types in 6?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:40
In a response of approximately 50 words, explain why it would be essential for the successful a/v technician to participate in additional coursework, presentations and seminars offered by equipment manufacturers as well as annual conferences attended by colleagues in the industry.
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
In cell b18, enter a formula to calculate the amount budgeted for meals. this amount is based on the daily meal allowance and the total travel days (# of nights+1).
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
This isn't about school but every time it tells me to watch an ad to unlock the answer to a question it prompts a survey and it just keeps loading. so i haven't been able to get answers for my tests in like a week.
Answers: 2
question
Computers and Technology, 24.06.2019 16:30
What is the item which could be matched with a statement below? software installed on a computer that produces pop-up ads using your browser an example of social engineering malware loads itself before the os boot is complete type of spyware that tracks your keystrokes, including passwords windows key + l the practice of tricking people into giving out private information or allowing unsafe programs into the network or computer when someone who is unauthorized follows the employee through a secured entrance to a room or building a type of malware that tricks you into opening it by substituting itself for a legitimate program a computer that has been hacked, and the hacker is using the computer to run repetitive software in the background without the user's knowledge an infestation designed to copy itself repeatedly to memory, on drive space, or on a network
Answers: 1
You know the right answer?
Copy andpaste this into this linkhttps://www. programiz. com/python-programming/online-compi ler/ th...
Questions
question
English, 25.09.2020 22:01
question
History, 25.09.2020 22:01
question
Mathematics, 25.09.2020 22:01
Questions on the website: 13722361