How to print first and last letter of a string in python July 8, 2019 16 32 64 128 How to print first digit of a number in python Given a string return a new string where the first and last chars have been exchanged Write a python program that accepts a string and calculate the number of digits and letters