"""simple docstring"""


def       lowerCamelCase_			( __lowerCAmelCase       ,   __lowerCAmelCase    )							-> float:




						'''simple docstring'''



						lowerCamelCase__ =float()
						try:
												lowerCamelCase__ =mass * acceleration
						except Exception:
												return -0.0
						return force


if __name__ == "__main__":
	import doctest

	# run doctest
	doctest.testmod()

	# demo
	a							=12.5
	a							=10
	a							=newtons_second_law_of_motion(mass, acceleration)
	print('The force is ', force, 'N')



"""simple docstring"""


from __future__ import annotations

from collections.abc import Generator





def       lowerCamelCase_			( __lowerCAmelCase    )							-> Generator[int, None, None]:




						'''simple docstring'''



						if not isinstance(__lowerCAmelCase       ,   __lowerCAmelCase    ) or n < 1:
												raise Exception("Sequence only defined for positive integers"    )

						yield n
						while n != 1:
												if n % 2 == 0:
																		n //= 2
												else:
																		lowerCamelCase__ =3 * n + 1
												yield n





def       lowerCamelCase_			( )							-> List[str]:




						'''simple docstring'''



						lowerCamelCase__ =43
						lowerCamelCase__ =tuple(collatz_sequence(__lowerCAmelCase    )    )
						print(__lowerCAmelCase    )
						print(F'''Collatz sequence from {n} took {len(__lowerCAmelCase    )} steps.'''    )


if __name__ == "__main__":
	main()


