0 votes
in Technology by (325k points)

What is the output of print str[2:5] if str = 'Hello World!'?

1 Answer

0 votes
by (325k points)

It will print characters starting from 3rd to 5th. Output would be llo.

...