The exclusion principle states that no two electrons in an atom can have the same set of quantum numbers i.e.…