word = 'Python'
print(word[-2])
What is the output of the following Python statement?
chr(ord('r')+2)
Suppose list1 is [2445,133,12454,123], what is max(list1)?
Which method is used to add multiple values to a set?
l = ['h', 'o', 'p' ,'e']
print('-'.join(l))
What will be the output of the following Python code snippet?
not(10<20) and not(10>30)
What is the output of the following code?
if None:
print(“Hello”)
What will be the output of the following Python code?
a={1:"A",2:"B",3:"C"}
a.clear()
print(a)
What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
print(x)
x = 'a'