describe_string.py
describe_string.py
s = input("Input a String: ")
length = len(s)
print(
"The length of the string is ",
length,
", the first character ",
s[0],
", and the last character ",
s[-1],
)describe_string.py
s = input("Input a String: ")
length = len(s)
print(
"The length of the string is ",
length,
", the first character ",
s[0],
", and the last character ",
s[-1],
)