What will be the output of the following Python statement?
>>>"a"+"bc"
a
bc
bca
abc
>>>"abcd"[2:]
ab
cd
dc
+
*
–
All of the mentioned
>>>print('new' 'line')
Error
Output equivalent to print ‘newline’
newline
new line
What will be the output of the following Python code?
>>>str1="helloworld"
>>>str1[::-1]
dlrowolleh
hello
world
helloworld
0xA0xB0xC
0x22
33
>>>example = "snow world"
>>>example[3] = 's'
>>>print example
snow
snow world
snos world
>>>max("what are you")
error
u
t
y
>>>example = "helle"
>>>example.find("e")
-1
1
0
example = "helle" print(example.rfind("e"))
4
3
>>>example="helloworld" >>>example[::-1].startswith("d")
True
None
>>>chr(ord('A'))
A
B
>>>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
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())
abcdef
none of the mentioned
print("abcdef".center(7, '1'))
1abcdef
abcdef1