Question
13- in python choose the right answer Q13:Suppose you define a tuple like the following: tup = (1, 2, 3, 4, 5) Now you want
13- in python choose the right answer
Q13:Suppose you define a tuple like the following:
tup = (1, 2, 3, 4, 5)
Now you want to change the value of this tuple in the 2nd index to 10. Which of the following options would you choose?
1- tup (2) = 10
2- tup [2] = 10
3- tup {2} = 10
4- None of the above
_____________
Q14:What if, when calling a function of the form
def func (a, b, c = 2)
return a + b + c,
do not specify the value of the argument c?
1- it will default to 2
2- It will take a random value
3- Both of the above are correct
4- None of the above
_____________________________
Q15:What if, when calling a function of the form
def func (a, b, c = 2)
return a + b + c,
do not specify the value of the argument a?
1- The function will not start
2- It will take a random value
3- Both of the above are correct
4- None of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started