




def 							__SCREAMING_SNAKE_CASE  (      snake_case_						):

						'''simple docstring'''


						if not isinstance(SCREAMING_SNAKE_CASE_     ,   SCREAMING_SNAKE_CASE_						):
												raise TypeError("recursive_lucas_number accepts only integer arguments."						)
						if n_th_number == 0:
												return 2
						if n_th_number == 1:
												return 1

						return recursive_lucas_number(n_th_number - 1						) + recursive_lucas_number(
						    n_th_number - 2						)


def 							__SCREAMING_SNAKE_CASE  (      snake_case_						):

						'''simple docstring'''


						if not isinstance(SCREAMING_SNAKE_CASE_     ,   SCREAMING_SNAKE_CASE_						):
												raise TypeError("dynamic_lucas_number accepts only integer arguments."						)
						_UpperCAmelCase							,			_UpperCAmelCase													=					2, 1
						for _ in range(SCREAMING_SNAKE_CASE_						):
												_UpperCAmelCase							,			_UpperCAmelCase													=					b, a + b
						return a


if __name__ == "__main__":
						from doctest import testmod

						testmod()
						lowercase_     :    Any      =			int(input('Enter the number of terms in lucas series:\n').strip())
						print('Using recursive function to calculate lucas series:')
						print(' '.join(str(recursive_lucas_number(i)) for i in range(n)))
						print('\nUsing dynamic function to calculate lucas series:')
						print(' '.join(str(dynamic_lucas_number(i)) for i in range(n)))










class    __lowerCAmelCase			:







			def __init__(	self   :      Dict   ,   snake_case__   :      List[str]=None				):




									"""simple docstring"""


									_UpperCAmelCase													=					data
									_UpperCAmelCase													=					None







			def __repr__(	self   :      Union[str, Any]				):




									"""simple docstring"""


									_UpperCAmelCase													=					""
									_UpperCAmelCase													=					self
									while temp:
															string_rep += F"""<{temp.data}> ---> """
															_UpperCAmelCase													=					temp.next
									string_rep += "<END>"
									return string_rep




def 							__SCREAMING_SNAKE_CASE  (      snake_case_						):

						'''simple docstring'''


						if not elements_list:
												raise Exception("The Elements List is empty"						)

						# Set first element as Head
						_UpperCAmelCase													=					Node(elements_list[0]						)
						_UpperCAmelCase													=					head
						# Loop through elements from position 1
						for data in elements_list[1:]:
												_UpperCAmelCase													=					Node(snake_case_						)
												_UpperCAmelCase													=					current.next
						return head


lowercase_     :    str      =			[1, 3, 5, 32, 44, 12, 43]
print(f"""List: {list_data}""")
print('Creating Linked List from List.')
lowercase_     :    Dict      =			make_linked_list(list_data)
print('Linked List:')





print(linked_list)




