pytohn string.upper code example Example 1: python upper >>> funny = 'haha' >>> print(funny.upper()) HAHA Example 2: python toupper str.upper()