Assignment 09 — string manipulation
Due same day as class 08
- For people who are watching class on a delayed basis: at the break point in the course meeting, do the exercise then.
- I expect for everyone it will be done before class time on Monday. If there are special circumstances needed let me know.
Problem prowess.py
- Practices some string manipulation. The program task is to
- Prompt and get a line of text.
- Determine and print the length of the text.
- Determine and print the index of last character in the text.
- Determine and print the last character of the text.
- Prints its results.
Two possible program runs
Enter text: Hoos got your back
Input length: 18
Index of last input character: 17
Last input character: k
Enter text: Enter text: And the winner is ...
Input length: 21
Index of last input character: 20
Last input character: .
🦆 © 2022 Jim Cohoon | Resources from previous semesters are available. |