What is output of the Python code ?
word = “PIPpackageManager”
print(word[1:-2])
Mark the correct statement:
What value type is thrown by default when executed in shell. Given function does not return any value.
What is the output of the following Python program?
tuple = {}
tuple[(1,2,4)] = 8
tuple[(4,2,1)] = 10
tuple[(1,2)] = 12
_sum = 0
for k in tuple:
_sum += tuple[k]
print(len(tuple) + _sum)
What is the output of the following code?
Number of except statements a try-except block have?
Which is not a keyword in Python language ?
How will you convert a string to a frozen set in python?
What is used to define a code block in python ?
What will be the output of following Python code ?
list = (i for i in range(20))
print(type(list))
Choose which is standard exception in Python?
What is the output of 17^20?
Which statement correctly explains the function of seek() method?
Which module is used to read .ini config files in python?
What will be the output of following python code ?
def a():
try:
return
(55%3%4*2*3
)
finally:
return(55%3%4*2*55)
b = a()
print(b)
What is a python file with .py extension called?
What will this Python code print?
iterator = -1
if iterator < 0:
print("The negative number ", iterator, " is not valid here.")
else:
print(iterator, " is a positive number")
else:
print("This is always printed")
Add description here!
What is correct about in python code?
class Name:
def __init__(python):
javapython = java
fun1 = Name()
fun2 = fun1
What is output of the Python code:
Which list comprehension is equal to this simple loop ?
for i in range(5):
matrix.append([])
forj in range(5):
matrix[i].append(j)
What can be an identifier from the following?