Assignment 09 — string manipulation
Due Monday, February 3
Problem prowess.py
- Practices some string manipulation. The program
- Prompts the user for a line of text.
- Determines the length of the text, the last character of the text, and the middle third of the text.
- Prints its results.
Two sample runs
Enter a line of text: Hoos got your back
The input has length: 18
The last character ( i.e., at index 17 ) is: k
Enter a line of text: And our winner is
The input has length: 17
The last character ( i.e., at index 16 ) is: s
© 2020 Jim Cohoon | Resources from previous semesters are available. |