What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('xyy', -10, -1))
2
0
1
error
print("xyyzxyzxzxyy".endswith("xyy"))
True
3
print("xyyzxyzxzxyy".endswith("xyy", 0, 2))
False
print("abcdef".find("cd") == "cd" in "abcdef")
Error
None of the mentioned
print("abcdef".find("cd"))
print("ccdcddcd".find("c"))
4
print('ab12'.isalnum())
print('ab,12'.isalnum())
None
print('ab'.isalpha())
print('a B'.isalpha())
What will be the output of the following Python code snippet?
print(''.isdigit())
print('abc'.islower())
print('a@ 1,'.islower())
print('11'.isnumeric())
print('1.1'.isnumeric())
print('HelloWorld'.istitle())
print('Hello World'.istitle())
print('Hello!2@#World'.istitle())
print('1Rn@'.lower())
n
1rn@
rn
r
print('xyyzxxyxyy'.lstrip('xyy'))
zxxyxyy
z
zxxy