


from __future__ import annotations

import requests







def        lowerCAmelCase_  (      __lowerCamelCase			):
							__snake_case	:    Union[str, Any]											=     F'https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty'
							return requests.get(__lowerCamelCase			).json()







def        lowerCAmelCase_  (      __lowerCamelCase = 1_0			):
							__snake_case	:    int											=     "https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty"
							__snake_case	:    Optional[Any]											=     requests.get(__lowerCamelCase			).json()[:max_stories]
							return [get_hackernews_story(__lowerCamelCase			) for story_id in story_ids]







def        lowerCAmelCase_  (      __lowerCamelCase = 1_0			):
							__snake_case	:    int											=     hackernews_top_stories(__lowerCamelCase			)
							return "\n".join("* [{title}]({url})".format(**__lowerCamelCase			) for story in stories			)


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





def        lowerCAmelCase_  (      __lowerCamelCase							,			__lowerCamelCase			):
							return int((input_a, input_a).count(0			) == 0			)







def        lowerCAmelCase_  (      ):
							assert and_gate(0							,			0			) == 0
							assert and_gate(0							,			1			) == 0
							assert and_gate(1							,			0			) == 0
							assert and_gate(1							,			1			) == 1


if __name__ == "__main__":
			test_and_gate()
			print(and_gate(1, 0))
			print(and_gate(0, 0))
			print(and_gate(0, 1))
			print(and_gate(1, 1))

