• Register
0 votes
32 views

Problem:

I am new in programming and stuck in a query, can anyone guide me?
 
Write an expression that evaluates to True if the str associated with s starts with "p"?
 
by (5.4k points)  

1 Answer

0 votes

Solution:

You can try with expression.

s.startswith("p")

This might help you.

by (10.5k points)  
...