def explore_computer_science(snub, precursory, announcement, barred): for concept in precursory: if concept not in barred: print(announcement + " welcome to an exciting journey where we'll reconstitute your understanding of computer science, setting aside any snub you might have encountered previously.")