title: How to remove brackets in python with string?
body: <p>I have this program:</p>
  
  <pre><code>import sys
  students = []
  grades = []
  
  while True:
      student = input ("Enter a name: ").replace(" ","")
      if  student.isalpha() == True and student != "0":
          while True:
              grade = input("Enter a grade: ").replace(" ","")
              if grade == "0" or grade == 0:
                  print ("\n")
                  print ("A zero is entered.")
                  sys.exit(0)
              if grade.isdigit()== True: 
                  grade = int(grade)
                  if grade &gt;= 1 and grade &lt;= 10:
                      if student in students:
                          index = students.index(student)
                          grades[index].append(grade)
                          break
                      else:
                          students.append(student)
                          grades.append([grade])
                          break
                  else:
                      print("Invalid grade.")
      elif student == "0": 
          print("A zero is entered.")
          break
      else:
          print ("Invalid name.")
  for i in range(0,len(students)): 
      print("NAME: ", students[i])
      print("GRADE: ", grades[i])
      print("AVERAGE: ", round(sum(grades[i])/len(grades[i]),1), "\n")
  </code></pre>
  
  <p>I need to make the <code>[]</code> disappear between numbers when the program prints them, for example.</p>
  
  <p>When you enter numbers, like this:</p>
  
  <pre><code>Enter a name: Jack
  Enter a grade: 8
  Enter a name: Jack
  Enter a grade: 9
  Enter a name: Jack
  Enter a grade: 7
  Enter a name: 0
  A zero is entered.
  </code></pre>
  
  <p>It prints like this:</p>
  
  <pre><code>NAME:  Jack
  GRADE:  [8, 9, 7]
  AVERAGE:  8.0 
  </code></pre>
  
  <p>But I need the program to print like this:</p>
  
  <pre><code> NAME:  Jack
   GRADE:  8, 9, 7
   AVERAGE:  8.0 
  </code></pre>
  
  <p>The grades should be without brackets.
  I think I need to use string or something, does anyone know how?</p>