BbJLeB

06. Favorite Movie

Jun 15th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. # 06. Favorite Movie
  2.  
  3. movie_name = input()
  4. max_points = -1111111111111
  5. min_ponts = 11111111111
  6. num_movie = 0
  7. points = 0
  8.  
  9. while movie_name != "STOP" or num_movie != 7:
  10.     for i in range(len(movie_name)+1):
  11.         if ord[] >= 65 and ord[i] <= 90:
  12.             points_movie = ord[i] - (len(movie_name) * 2)
  13.             points += points_movie
  14.         if ord[i] >= 97 and ord[i] <= 122:
  15.             points_movie = ord[i] - len(movie_name)
  16.             points += points_movie
  17. print(points)
Add Comment
Please, Sign In to add comment