python char to uppercase code example Example 1: python3 lowercase str.lower() Example 2: python method to check for uppercase character a="DEMO" print(a.isupper())