1 # 1. Search for your own name. Are there both boys and girls that have your
2 # name? Is it more popular for one group than for the other?
8 if name in ssadata.boys.keys():
9 boys_count = ssadata.boys[name]
10 print("there were " + str(boys_count) + " boys named " + name)
13 print("there were no boys named " + name)
16 if name in ssadata.girls.keys():
17 girls_count = ssadata.girls[name]
18 print("there were " + str(girls_count) + " girls named " + name)
21 print("there were no girls named " + name)
24 if boys_count > girls_count:
25 print("there were more boys named " + name + " than girls")
26 elif boys_count == girls_count:
27 print("there were the same number boys and girls named " + name)
29 print("there were more girls named " + name + " than boys")