Add parentheses after print in my_top_artists.py

This commit is contained in:
Ryan K. Lee authored and Stephane Bruckert committed 2020-01-11 19:54:21 +00:00
1 parent 91639996e1
commit ba6e9a0b79
1 file changed
+3 -3
+3 -3
View File
@@ -21,10 +21,10 @@ if token:
sp.trace = False
ranges = ['short_term', 'medium_term', 'long_term']
for range in ranges:
print "range:", range
print ("range:", range)
results = sp.current_user_top_artists(time_range=range, limit=50)
for i, item in enumerate(results['items']):
print i, item['name']
print
print (i, item['name'])
print ()
else:
print("Can't get token for", username)