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 11:00
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
question
Computers and Technology, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
You know the right answer?
Copy andpaste this into this linkhttps://www. programiz. com/python-programming/online-compi ler/ th...
Questions
question
Mathematics, 16.09.2019 18:20
question
Mathematics, 16.09.2019 18:20
Questions on the website: 13722363