Merge pull request #219 from gwynnebaer/master

python 3 syntax for print() example in README.md
This commit is contained in:
Stéphane Bruckert 2020-01-12 00:19:40 +00:00 committed by GitHub
commit 3b2b05769a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ sp = spotipy.Spotify()
results = sp.search(q='weezer', limit=20) results = sp.search(q='weezer', limit=20)
for i, t in enumerate(results['tracks']['items']): for i, t in enumerate(results['tracks']['items']):
print ' ', i, t['name'] print(' ', i, t['name'])
``` ```
A full set of examples can be found in the [online documentation](http://spotipy.readthedocs.org/) and in the [Spotipy examples directory](https://github.com/plamere/spotipy/tree/master/examples). A full set of examples can be found in the [online documentation](http://spotipy.readthedocs.org/) and in the [Spotipy examples directory](https://github.com/plamere/spotipy/tree/master/examples).