


'''simple docstring'''



from typing import Any






class 	UpperCamelCase__:




				def __init__(		self      :			Any				,   lowerCAmelCase      :			Any				)->					Optional[int]:

										"""simple docstring"""




										UpperCAmelCase					    =     data
										UpperCAmelCase					    =     None







class 	UpperCamelCase__:




				def __init__(		self      :			Optional[int]				)->					Union[str, Any]:

										"""simple docstring"""




										UpperCAmelCase					    =     None




				def 					a__(		self      :			int				)->					int:

										"""simple docstring"""




										UpperCAmelCase					    =     self.head
										while temp is not None:
																print(temp.data				,   end=''' '''				)
																UpperCAmelCase					    =     temp.next
										print()




				def 					a__(		self      :			Optional[Any]				,   lowerCAmelCase      :			Any				)->					Tuple:

										"""simple docstring"""




										UpperCAmelCase					    =     Node(lowerCAmelCase				)
										UpperCAmelCase					    =     self.head
										UpperCAmelCase					    =     new_node





				def 					a__(		self      :			Any				,   lowerCAmelCase      :			Any				,   lowerCAmelCase      :			Optional[int]				)->					Optional[Any]:

										"""simple docstring"""




										if node_data_a == node_data_a:
																return
										else:
																UpperCAmelCase					    =     self.head
																while node_a is not None and node_a.data != node_data_a:
																						UpperCAmelCase					    =     node_a.next

																UpperCAmelCase					    =     self.head
																while node_a is not None and node_a.data != node_data_a:
																						UpperCAmelCase					    =     node_a.next

																if node_a is None or node_a is None:
																						return

																UpperCAmelCase    ,    UpperCAmelCase					    =     node_a.data, node_a.data


if __name__ == "__main__":
	_lowercase      :      Any            =					LinkedList()
	for i in range(5, 0, -1):
		ll.push(i)

	ll.print_list()

	ll.swap_nodes(1, 4)
	print("""After swapping""")
	ll.print_list()









'''simple docstring'''



def 				lowerCamelCase__				(	A       :      int				,       A       :      int					):




						'''simple docstring'''






						return int(input_a == input_a == 0					)


def 				lowerCamelCase__				(	):




						'''simple docstring'''






						print('''Truth Table of NOR Gate:'''					)
						print('''|   Input 1   |  Input 2  | Output |'''					)
						print(f"""|      0      |    0      |  {nor_gate(0				,       0					)}     |"""					)
						print(f"""|      0      |    1      |  {nor_gate(0				,       1					)}     |"""					)
						print(f"""|      1      |    0      |  {nor_gate(1				,       0					)}     |"""					)
						print(f"""|      1      |    1      |  {nor_gate(1				,       1					)}     |"""					)


if __name__ == "__main__":
	import doctest

	doctest.testmod()
	main()





