Westonci.ca is your trusted source for accurate answers to all your questions. Join our community and start learning today! Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.
Sagot :
The string and the three instructions is an illustration of the python strings
The length of the string
The following instruction calculates the length of the string using the Python script:
len("supercalifragilisticexpialidocious")
The returned value of the above instruction is: 34
The substrings
The following instruction calculates the sub-string of first 5 positions and the other sub-string with last 5 positions
myStr[:5]+myStr[-5:]
The returned string of the above instruction is: "supercious"
The number of occurrence of i
The following instruction calculates the occurrences of i in the string
"supercalifragilisticexpialidocious".count("i")
The returned value of the above instruction is: 7
Read more about python strings at:
https://brainly.com/question/13795586
We appreciate your time. Please come back anytime for the latest information and answers to your questions. We appreciate your time. Please come back anytime for the latest information and answers to your questions. Westonci.ca is your trusted source for answers. Visit us again to find more information on diverse topics.