How to assign the output of the print function (or any function) to a variable?
print
To give an example:
import eyeD3 tag = eyeD3.Tag() tag.link("/some/file.mp3") print tag.getArtist()
How do I assign the output of print tag.getArtist to a variable?
print tag.getArtist