code: 
  
  
  
  
  
  '''simple docstring'''
  
  
  
  
  from __future__ import annotations
  
  from collections.abc import Iterator
  from typing import Any
  
  
  class 							__snake_case    :
  
  
  
  
  
  	def __init__(		self			,					UpperCamelCase_		)			->		None:
  		snake_case__  					=      data
  		snake_case__  					=      None
  
  
  
  
  
  	def __str__(		self		)			->		str:
  		return F'''{self.data}'''
  
  
  
  
  
  class 							__snake_case    :
  
  
  
  
  
  	def __init__(		self		)			->		None:
  		snake_case__  					=      None
  		snake_case__  					=      None
  
  
  
  
  
  	def __iter__(		self		)			->		Iterator[Any]:
  		snake_case__  					=      self.front
  		while node:
  			yield node.data
  			snake_case__  					=      node.next
  
  
  
  
  
  	def __len__(		self		)			->		int:
  		return len(tuple(iter(self		)		)		)
  
  
  
  
  
  	def __str__(		self		)			->		str:
  		return " <- ".join(str(lowercase_		) for item in self		)
  
  
  
  
  
  	def      _snake_case      (		self		)			->		bool:
  		return len(self		) == 0
  
  
  
  
  
  	def      _snake_case      (		self			,					UpperCamelCase_		)			->		None:
  		snake_case__  					=      Node(lowercase_		)
  		if self.is_empty():
  			snake_case__  					=      node
  		else:
  			assert isinstance(self.rear			,					lowercase_		)
  			snake_case__  					=      node
  			snake_case__  					=      node
  
  
  
  
  
  	def      _snake_case      (		self		)			->		Any:
  
  		if self.is_empty():
  			raise IndexError('dequeue from empty queue'		)
  		assert isinstance(self.front			,					lowercase_		)
  		snake_case__  					=      self.front
  		snake_case__  					=      self.front.next
  		if self.front is None:
  			snake_case__  					=      None
  		return node.data
  
  
  
  
  
  	def      _snake_case      (		self		)			->		None:
  		snake_case__  					=      None
  
  
  if __name__ == "__main__":
  			from doctest import testmod
  
  			testmod()
  
  
  
  
style_context: 
  
  
  
  
  
  '''simple docstring'''
  
  
  
  
  def 	__lowerCamelCase (  UpperCAmelCase_       )      ->int:
  	return 1 if input_a == 0 else 0
  
  
  
  
  def 	__lowerCamelCase (  )      ->None:
  	assert not_gate(0       ) == 1
  	assert not_gate(1       ) == 0
  
  
  if __name__ == "__main__":
  			print(not_gate(0))
  			print(not_gate(1))
  
  
  
  