Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
splitting a random song
#3
Below is the error code for the python code for splitting the random song. I messed around with it a little and i think its to do with splitting a variable but im not sure.

Input your usernameBen
Input your passwordTommy_04
well done you logged in Ben
Livin on a Prayer / 12 / Bon Jovi
Traceback (most recent call last):
File "\documents\Desktop\Python\Course_Work.py", line 56, in <module>
main()
File "\documents\Desktop\Python\Course_Work.py", line 52, in main
split_song(songnames)
File "\documents\Desktop\Python\Course_Work.py", line 43, in split_song
for letter in songnames.split(" "):
AttributeError: 'list' object has no attribute 'split'
>>>
Reply


Messages In This Thread
splitting a random song - by Unknown_Relic - Nov-14-2019, 10:37 AM
RE: splitting a random song - by ichabod801 - Nov-14-2019, 01:28 PM
RE: splitting a random song error message - by Unknown_Relic - Nov-15-2019, 11:36 AM
RE: splitting a random song - by baquerik - Nov-15-2019, 01:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Song Modifying Program Starting Point BadenJaden 1 1,905 Mar-27-2020, 11:36 AM
Last Post: pyzyx3qwerty
  random selection of song and artist not working Unknown_Relic 2 2,375 Nov-08-2019, 02:06 PM
Last Post: perfringo
  How to play a song .wav or .mp3 with audioop native library IvanSilva 3 6,596 Mar-14-2018, 10:49 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020