What will be the output of the following Python code?
>>>max("what are you")
error
u
t
y
>>>example = "helle"
>>>example.find("e")
Error
-1
1
0
example = "helle" print(example.rfind("e"))
4
3
>>>example="helloworld" >>>example[::-1].startswith("d")
dlrowolleh
True
None
What will be the output of the following Python statement?
>>>chr(ord('A'))
A
B
a
>>>print(chr(ord('b')+1))
b
c
print(“helloexample est.txt”)
print(“helloexample test.txt”)
print(“hello”example”test.txt”)
print(“hello”example”est.txt”)
hello123
hello
hello6
2
input(“Enter a string”)
eval(input(“Enter a string”))
enter(“Enter a string”)
eval(enter(“Enter a string”))
print("abc DEF".capitalize())
abc def
ABC DEF
Abc def
Abc Def
print("abcdef".center())
cd
abcdef
none of the mentioned
print("abcdef".center(7, '1'))
1abcdef
abcdef1
print("abcdef".center(10, '12'))
12abcdef12
abcdef1212
1212abcdef
print("xyyzxyzxzxyy".count('yy'))
print("xyyzxyzxzxyy".count('yy', 1))
print("xyyzxyzxzxyy".count('xyy', 2, 11))
print("xyyzxyzxzxyy".count('xyy', -10, -1))
ascii
qwerty
utf-8
utf-16
print("xyyzxyzxzxyy".endswith("xyy"))