





"""simple docstring"""
from __future__ import annotations

def 		_SCREAMING_SNAKE_CASE			(_UpperCAmelCase					:    list[float]			):
 if len(_UpperCAmelCase			) < 2:
  raise ValueError('Monogons and Digons are not polygons in the Euclidean space'			)
 if any(i <= 0 for i in nums			):
  raise ValueError('All values must be greater than 0'			)
 lowerCAmelCase    				= nums.copy()
 copy_nums.sort()
 return copy_nums[-1] < sum(copy_nums[:-1]			)


if __name__ == "__main__":
       import doctest

       doctest.testmod()












"""simple docstring"""
from __future__ import annotations

import requests

def 		_SCREAMING_SNAKE_CASE			(_UpperCAmelCase					:    str			):
 lowerCAmelCase    				= F'https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty'
 return requests.get(_UpperCAmelCase			).json()

def 		_SCREAMING_SNAKE_CASE			(_UpperCAmelCase					:    int = 10			):
 lowerCAmelCase    				= 'https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty'
 lowerCAmelCase    				= requests.get(_UpperCAmelCase			).json()[:max_stories]
 return [get_hackernews_story(_UpperCAmelCase			) for story_id in story_ids]

def 		_SCREAMING_SNAKE_CASE			(_UpperCAmelCase					:    int = 10			):
 lowerCAmelCase    				= hackernews_top_stories(_UpperCAmelCase			)
 return "\n".join('* [{title}]({url})'.format(**_UpperCAmelCase			) for story in stories			)


if __name__ == "__main__":
       print(hackernews_top_stories_as_markdown())





