import sys
sys.argv[0]
_____ is a Python library used for working with arrays.
import sys
eval(sys.stdin.readline())
Abekus
What will be the value of the following Python expression?
float(4 + int(2.39) % 2)
Which function in the Flask class returns a response object?
Find the output of the following code:
s1={1,4,2,5,2,8}
s2={2,4,6,8,3}
print(s1^s2)
A program swaps the values of two variables a
and b
using the XOR (^) operator. If the input is 5 25, what is the output of the program?
If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __str__ method.
What will be the output of the following Python code?
myList = [1, 2, 3, 4, 5, 6]
for i in range(1, 6):
myList[i - 1] = myList[i]
for i in range(0, 6):
print(myList[i], end = " ")
Find the output of the following code:
def student(name, age, **marks):
print("name:", name)
print("age:", age)
print("marks:", marks)