code: 
  
  
  import os
  
  
  def 							SCREAMING_SNAKE_CASE					(  )    ->  int:
  						_a     =			os.path.dirname(os.path.realpath(_UpperCAmelCase				)				)
  						_a     =			os.path.join(_UpperCAmelCase							,     'triangle.txt'				)
  
  						with open(_UpperCAmelCase				) as in_file:
  												_a     =			[[int(_UpperCAmelCase				) for i in line.split()] for line in in_file]
  
  						while len(_UpperCAmelCase				) != 1:
  												_a     =			triangle.pop()
  												_a     =			triangle[-1]
  												for j in range(len(_UpperCAmelCase				) - 1				):
  																		curr_row[j] += max(last_row[j]							,     last_row[j + 1]				)
  						return triangle[0][0]
  
  
  if __name__ == "__main__":
  					print(solution())
  
  
  
style_context: 
  
  
  from math import pi
  
  
  def 							SCREAMING_SNAKE_CASE					(  _UpperCAmelCase				)    ->  float:
  						return degree / (180 / pi)
  
  
  if __name__ == "__main__":
  		from doctest import testmod
  
  		testmod()
  
  
  