The ------------------- module is the standard module that is used to generate a random number.
What is the output of the following Python code?
print(0.1 + 0.2 == 0.3)
Find the output of the following code:
x="Hello World !!"
print(x.index("World"))
What will be the output of the following Python code snippet?
print('+99'.zfill(5))
What is the output of the following Python code?
def function(*a):
num=[*a]
print(num)
function()
When the security context enables carefully written stored programs to be set up that provide controlled access to tables for users, it is called __________
def func(x, y=2):
num = 1
for i in range(y):
num = num * x
return num
print (func(4))
print (func(4, 4))
In _______________ copy, the base address of the objects are copied. In _______________ copy, the base address of the objects are not copied.
What is the order of precedence in python?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction
What will be the output of the following Python code?
a = ('check',)
n = 2
for i in range(int(n)):
a = (a,)
print(a)