Thursday 17 September 2026
CodingDrills.au
Complete 3 warm up questions to unlock bonus challenges!
Second Last Character
Warm Up Question1 of 3
Write a program that inputs a string and outputs the second last character of that string.
Input Format
A string of length>1.
Output Format
A single character: the second last character of the input string.
Example
Input:
Supercilious
Output:
u
Python Code Editor
2:59
# Write your Python code here
Complete 3 more warm up questions to unlock bonus challenges!