What will be the output of the following Python code?
print("xyyzxyzxzxyy".endswith("xyy", 0, 2))
print("ab\tcd\tef".expandtabs())
print("ab\tcd\tef".expandtabs(4))
print("ab\tcd\tef".expandtabs('+'))
print("abcdef".find("cd") == "cd" in "abcdef")
print("abcdef".find("cd"))
print("ccdcddcd".find("c"))
निम्नलिखित Python कोड का आउटपुट क्या होगा?
print("Hello {0} and {1}".format('foo', 'bin'))
print("Hello {1} and {0}".format('bin', 'foo'))
print("Hello {} and {}".format('foo', 'bin'))
print("Hello {name1} and {name2}".format(name1='foo', name2='bin'))
print("Hello {0!r} and {0!s}".format('foo', 'bin'))
print("Hello {0} and {1}".format(('foo', 'bin')))
print('ab12'.isalnum())
print('ab,12'.isalnum())
print('ab'.isalpha())
print('a B'.isalpha())
What will be the output of the following Python code snippet?
print('0xa'.isdigit())
print(''.isdigit())