Antibiotics are medicines used to treat bacterial infections. They work by either killing the bacteria or preventing their growth. There…