What will be the output of the following Python code? print("Hello {name1} and {name2}".format('foo', 'bin')) a) ...
View Question
What will be the output of the following Python code?
print(“Hello {} and {}”.format(‘foo’, ‘bin’))
What will be the output of the following Python code? print("Hello {} and {}".format('foo', 'bin')) a) ...
View Question
What will be the output of the following Python code?
print(“Hello {1} and {0}”.format(‘bin’, ‘foo’))
What will be the output of the following Python code? print("Hello {1} and {0}".format('bin', 'foo')) a) ...
View Question
What will be the output of the following Python code?
print(“Hello {0} and {1}”.format(‘foo’, ‘bin’))
What will be the output of the following Python code? print("Hello {0} and {1}".format('foo', 'bin')) a) ...
View Question
What will be the output of the following Python code?
print(“ccdcddcd”.find(“c”))
What will be the output of the following Python code? print("ccdcddcd".find("c")) a) 4 b) ...
View Question
What will be the output of the following Python code?
print(“abcdef”.find(“cd”))
What will be the output of the following Python code? print("abcdef".find("cd")) a) true b) ...
View Question
What will be the output of the following Python code?
print(“abcdef”.find(“cd”) == “cd” in “abcdef”)
What will be the output of the following Python code? print("abcdef".find("cd") == "cd" in "abcdef") a) ...
View Question
What will be the output of the following Python code?
print(“ab\tcd\tef”.expandtabs(‘+’))
What will be the output of the following Python code? print("ab\tcd\tef".expandtabs('+')) a) ab+cd+ef
View Question
What will be the output of the following Python code?
print(“ab\tcd\tef”.expandtabs(4))
What will be the output of the following Python code? print("ab\tcd\tef".expandtabs(4)) a) ab cd ...
View Question
What will be the output of the following Python code?
print(“ab\tcd\tef”.expandtabs())
What will be the output of the following Python code? print("ab\tcd\tef".expandtabs()) a) ab cd ef b) ...
View Question