forked from azianmike/CS_498_Project_2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Testing.py
36 lines (31 loc) · 799 Bytes
/
Testing.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
__author__ = 'michaelluo'
from GenreDictionary import artistGenre
hiphopCount=0
electronic=0
country=0
pop=0
rock=0
alternative=0
count=0
for x in artistGenre:
if artistGenre[x] == 'Hip Hop':
hiphopCount+=1
if artistGenre[x] is 'Electronic':
electronic+=1
if artistGenre[x] is 'Country':
country+=1
if artistGenre[x] is 'Pop':
pop+=1
if artistGenre[x] is 'Rock':
rock+=1
if artistGenre[x] is 'Alternative':
alternative+=1
count+=1
print 'hip hop '+str(hiphopCount)
print 'electronic '+str(electronic)
print 'country '+str(country)
print 'pop '+str(pop)
print 'rock '+str(rock)
print 'alternative '+str(alternative)
print 'total '+str(hiphopCount+electronic+country+pop+rock+alternative)
print 'total count '+str(count)