title: How can I format this output to have a %?
body: <p>I would like to know how to format the output to have a percentage, where the <code>labScore=score(labPercent, labWeight)</code> is?</p>
  
  <p>Here's my sample:</p>
  
  <pre><code>def score(earnedPercent, overallWeight):
      scorePercent = earnedPercent * overallWeight
      scorePercent = scorePercent % 7
      return scorePercent
  
  def grade(gradePercent):
     if gradePercent &gt;=90 and gradePercent &lt;= 100:
        letterGrade="A"
     elif gradePercent &gt;=75 and gradePercent &lt;= 90:
        letterGrade="B"
     elif gradePercent &gt;= 60 and gradePercent &lt;= 75:
        letterGrade = "C"
     elif gradePercent &gt;= 50 and gradePercent &lt;= 60:
        letterGrade = "D"
     elif gradePercent &lt; 50:
        letterGrade = "F"
     return letterGrade
  
  labWeight = 0.20
  labPercent=int(input("What is your lab percent so far (-1 if no labs yet)?: "))
  labScore=score(labPercent, labWeight)
  
  assignmentWeight = 0.10
  assignmentPercent=int(input("What is your assignment percent so far (-1 if no assignment yet?: "))
  assignmentScore=score(assignmentPercent, assignmentWeight)
  
  examWeight = 0.70
  examPercent=int(input("What is your exam percent so far (-1 if no exams yet)?: "))
  examScore=score(examPercent, examWeight)
  </code></pre>