bs4.Doctype.swapcase

Doctype.swapcase() → unicode

Return a copy of S with uppercase characters converted to lowercase and vice versa.