How to get the first 2 characters of a string in python July 8, 2019 16 32 64 128 Given a string return a new string where the first and last chars have been exchanged Given two strings find the number of common characters between them