CSE MCQs :: Python MCQs
-
What is the output when following code is executed ?print r"\nhello"The output is
-
What is the output of the following code ?example = "snow world"example[3] = 's'print example
- Suppose i is 5 and j is 4, i + j is same as
-
What is the output of the following?print('*', "abcdef".center(7), '*')
-
What is the output of the following?print("Hello {1} and {0}".format('bin', 'foo'))
-
What is the output of the following?print('The sum of {0} and {1} is {2}'.format(2, 10, 12))
-
What is the output of the following?print('a'.maketrans('ABC', '123'))