def calculated_stat(base_stat, level, iv, effort, nature=None):
 stat = ((((((base_stat * 2) + iv) + (effort // 4)) * level) // 100) + 5)
 if nature:
  stat = int((stat * nature))
 return stat

def calculated_stat ( base_stat , level , iv , effort , nature = None ) : stat = ( ( ( ( ( ( base_stat * 2 ) + iv ) + ( effort // 4 ) ) * level ) // 100 ) + 5 ) if nature : stat = int ( ( stat * nature ) ) return stat
returns the calculated stat -- i .