Which is correct to print the following ?
Welcome-to-python-easy
Which of the following results in a SyntaxError ?
What is the output of the following program ?
k = bytearray(b'python')
k.extend(b'easy')
print(k)
What is the output of the following code ?
"".join(["2", 10])
What is the output of the following code ?
>>> comment_string = '#....... Section 3.2.1 Issue #32 .......'
>>> comment_string.strip('.#! ')
What is the output of the following code ?
>>> s = "they're bill's friends from the UK"
>>> s.title()
What is the output of the following code ?
>>> s = "they're bill's friends from the UK"
>>> s.capitalize()
What is the output of the following code ?
>>> prefix_strings = 'they', 'he'
>>> s = "they're bill's friends from the UK"
>>> p = "he is bill's friends from the UK"
>>> s.startswith(prefix_strings), p.startswith(prefix_strings)
What is the output of the following code ?
>>> s = "they're bill's friends from the UK"
>>> s.endswith('from', 5, 27)
What is the output of the following code ?
>>> p = 'he is from US'
>>> e = 'he is from UK'
>>> suffix_strings = 'UK', 'IND'
>>> e.endswith(suffix_strings), p.endswith(suffix_strings)