for practicewrite programs to do the following tasks the collatz sequence write function named collatz(that has one parameter named number if number is eventhen collatz(should print number / and return this value if number is oddthen collatz(should print and return number then write program that lets the user type in an integer and that keeps calling collatz(on that number until the function returns the value (amazingly enoughthis sequence actually works for any integer--sooner or laterusing this sequenceyou'll arrive at even mathematicians aren' sure why your program is exploring what' called the collatz sequencesometimes called "the simplest impossible math problem "remember to convert the return value from input(to an integer with the int(functionotherwiseit will be string value hintan integer number is even if number = and it' odd if number = the output of this program could look something like thisenter number input validation add try and except statements to the previous project to detect whether the user types in noninteger string normallythe int(function will raise valueerror error if it is passed noninteger stringas in int('puppy'in the except clauseprint message to the user saying they must enter an integer