Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# CREATING ANOTHER SUB CLASS
crunches="3pm daily"
weightlifting="5pm daily"
yogaclass="1pm daily"
salsaclass="7pm daily"
# groupExerciseclasses(male,female)
def groupExerciseclasses(gender):
exercises=[crunches,weightlifting,salsaclass,yogaclass]
if gender=="male":
print ("crunches",crunches,"and","weightlifting",weightlifting,"is avaliable")
return""
elif gender=="female":
print ("yogaclass",yogaclass,"salsaclass","and",salsaclass,"is avaliable")
return""
else:
return "impossible"
while True:
gender=input("PLEASE ENTER YOUR GENDER:")
print(groupExerciseclasses(gender))
if gender=="No":
break