<prompt> Write an algorithm to determine whether an integer is odd or even.  <response>: Follow the steps outlined below to determine if an integer is odd or even:1 Take an integer as an input and assign it to variable num.2 Divide the integer by 2.pythonis_even num 23 If num is divided evenly by 2, the remainder will be 0. If this is the case, we assign True to the variable is_even.pythonis_even num 2 04 If the is_even variable is True, we can conclude that num is an even number. Otherwise, num is odd.pythonif is_even:printnum, is an even numberelse:printnum, is an odd number 