-->

SIMPLE PYTHON PROJECTS

 PYTHON PROJECTS


1.Music player:-

library :- pip install playsound


code:-

import playsound
filename='C:\\Users\\SAKTHIVEL S\\Downloads\\thememusic.mp3'
playsound.playsound(filename)



2.color photo to black & white photo:-

library :- pip install pillow


code:-

from PIL import Image
img=Image.open('C:\\Users\\SAKTHIVEL S\\Downloads\\land.jpg')
bw=img.convert("P")
bw.show()

#p - palettised
#L - luminance