Which HTTP status code is used for Forbidden in Flask?
Which of the following is an illegal variable name?
In a procedural programming language, the basic unit is _____.
Which of the following expressions involves coercion when evaluated in Python?
Given a function that does not return any value, What value is thrown by default when executed in shell.
def addFunc(item):
item += [1]
mylist = [1, 2, 3, 4]
addFunc(mylist)
print (len(mylist))
The left shift of any number by three bits is equal to what?
What is the output of the given code?
def myfunc(a):
a[0]=2
list=[11,23,45,67,78]
myfunc(list)
print(list)
What does random.shuffle(x) do when x = [1, 2, 3]?
What will be the output of the following code?
class game:
def __init__(self,name,score):
self.name=10
self._score=20
self.score=30
self.__output()
def __output(self):
print(self.name)
print(self._score)
print(self.score)
action=game('PUBG',100)
action.__output()