Advertisement
Guest User

Untitled

a guest
Jun 26th, 2022
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.80 KB | None | 0 0
  1. # Python Script for Rating Anime because I have no life
  2.  
  3. story = float(input("Input Story Score: "))
  4. characters = float(input("Input Characters Score: "))
  5. art = float(input("Input Art Score: "))
  6. sound = float(input("Input Sound Score: "))
  7. enjoyment = float(input("Input Enjoyment Score: "))
  8.  
  9.  
  10. def calculate_score(s, c, a, h, e):
  11.     return ((s + c) * 0.35) + ((a + h) * 0.025) + (e * 0.25)
  12.  
  13.  
  14. # Press the green button in the gutter to run the script.
  15. if __name__ == '__main__':
  16.     final_score = calculate_score(story, characters, art, sound, enjoyment)
  17.     print(f"Story: {int(story)} | Characters: {int(characters)} "
  18.           f"| Art: {int(art)} | Sound: {int(sound)} | Enjoyment: {int(enjoyment)}")
  19.     print(f"Your Rating is {final_score} which rounds to "
  20.           f"{round(final_score,1)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement