Skip to content

Commit e921426

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in d0ee849 according to the output from Autopep8. Details: None
1 parent d0ee849 commit e921426

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lyrics Finder /script.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import requests
22

3+
34
def find_lyrics(artist, title):
45
base_url = 'https://api.lyrics.ovh/v1/{}/{}'.format(artist, title)
56
response = requests.get(base_url)
@@ -11,6 +12,7 @@ def find_lyrics(artist, title):
1112
else:
1213
return 'Error fetching lyrics. Please check the artist and title and try again.'
1314

15+
1416
if __name__ == '__main__':
1517
artist_name = input('Enter the artist name: ')
1618
song_title = input('Enter the song title: ')
@@ -19,6 +21,6 @@ def find_lyrics(artist, title):
1921
print('\nLyrics:\n')
2022
print(lyrics)
2123

22-
#Make sure you have the requests library installed in your Python environment before running this script. You can install it using pip install requests.
24+
# Make sure you have the requests library installed in your Python environment before running this script. You can install it using pip install requests.
2325

24-
#To use the script, simply run it, and it will prompt you to enter the artist name and song title. After entering the details, it will fetch and display the lyrics for the specified song.
26+
# To use the script, simply run it, and it will prompt you to enter the artist name and song title. After entering the details, it will fetch and display the lyrics for the specified song.

0 commit comments

Comments
 (0)