def exploreoccupations(occupations): for occupation in occupations: if occupation.needspreexplanation(): print("before you dive in, let's prepare you with some basics."); elif occupation.ischallenging(): secrets = occupation.findsecretstosuccess(); print(f"don't let the cold-shoulder discourage you; with these secrets {secrets}, you can master {occupation.name} processes and take up this occupation from scratch.")