Fork Python 4 Question 7

Last Updated :
Discuss
Comments

What does the startswith() function in Python do?
 

It returns true if all the letters in the string are uppercased.

It returns true if the string starts with a specified prefix.

It returns true if the string ends with a specified suffix.

It returns true if all the letters in the string are lowercased

Share your thoughts in the comments