Antibiotics are effective in case of bacteria but do not affect viruses. Why?
Antibiotics commonly work by blocking the biochemical pathways important for bacteria. Thus these inhibit the growth of bacteria , hamper their metabolism and kill them.
Antibiotics do not work on viruses because viruses do not use the biochemical path thus the antibiotics have no effect on viruses.