how to select one letter from field[0] and the whole name from field[1] in python? : file = open("songs.txt","r")

#Repeat for each song in the text file
for line in file:
  
  #Let's split the line into an array called "fields" using the ";" as a separator:
  fields = line.split(";")
  
  #and let's extract the data:
  songTitle = fields[0]
  artist = fields[1]
  
  #Print the song
  print(songTitle + " by " + artist)

#It is good practice to close the file at the end to free up resources   
file.close()





this is the songs.txt file

Gods plan;Drake

Umberella;Rihanna

Perfect;Ed Sheeran

Shape of you;Ed sheeran

Hello; Adele

Thank u next; Ariana Grande

Love Yourself; Justin bieber

Confident;Demi lovato

Sorry not sorry;Demi Lovato

Back to you;Selena gomez

Havana; Camila cabello

I like it; Cardi b

Jumanji; B young

Mariah; Koomz
