Saved Bookmarks
| 1. |
Write the output of the given Python code # !/usr/bin/pythonstr = “this is really a string example…. wow!!!”;str = “is”;print str.rfind(str); print str.rfind(str, 0,10); print str.rfind(str, 10, 0); print str.find(str); print str.find(str, 0,10); print str.find(str, 10, 0); |
|
Answer» Above code will produce the following result : 5 5 -1 2 2 -1 |
|