Question: s g = Peter can managel. How do you print first & last word of this msg ? msg [ : 5 ] , msg

sg= "Peter can managel". How do you print first & last word of this msg?
msg[:5], msg[10:]
msg.split("")[0], msg.split("")[2]
both a & b
only a
only b
a
b
c
s g = "Peter can managel". How do you print first

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!