IwanttoplayasonginpythonbutwhenIdragittomyprojectitgets"written", how can I do it? (I'm new to python)
Good evening,
You can listen to music with the help of the pygame library as well as other solutions. Your song should be in the same directory as the file
import pygame
pygame.init () pygame.mixer.music.load ('myMusica.mp3') pygame.mixer.music.play () pygame.event.wait ()