Checking if a string is empty in Python

The pythonic way to check if a string is empty is using the not operator.

my_string = ''
if not my_string:
  print("My string is empty!!!")

To check the opposite, if the string is not empty:

my_string = 'amazon, microsoft'
if my_string:
  print("My string is NOT empty!!!")