Python String Quiz (original) (raw)

What is the output of the following program?

Python `

a = 2 b = '3.77' c = -8 s = '{0:.4f} {0:3d} {2} {1}'.format(a, b, c) print(s)

`

What are strings in Python?

What does the string method .join() do in Python?

Which method can be used to handle strings with both single and double quotes simultaneously in Python?

How can you print a string without resolving escape sequences in Python?

What is the primary reason that updating or deleting characters from a string in Python is not allowed?

What is the purpose of the find() function in Python strings?

What does the startswith() function in Python do?

What does the title() method do in Python strings?

What is the time complexity of the find() function in Python?

There are 16 questions to complete.

Take a part in the ongoing discussion