Consider a situation where a person is very indecisive and unable to decide whether to do a particular given task, today
Posted: Sun Jul 03, 2022 11:59 am
Consider a situation where a person is very indecisive and unable to decide whether to do a particular given task, today or tomorrow. The person comes up with a solution for this indecisiveness. The person plucks off all the petals of a flower, saying the words "today" and "tomorrow" alternatively. Write a function named today_or_tomorrow that receives an integer num_of_petals that represents the number of petals on the flower as a parameter and returns a string that repeats the words "today" and "tomorrow" for every alternating petal and returns the last word in capital letters which also denotes when the person will do that task. Sample Input/Output: Enter the number of petals: 3 today, tomorrow, TODAY Enter the number of petals: 6 today, tomorrow, today, tomorrow, today, TOMORROW Enter the number of petals: 5 today, tomorrow, today, tomorrow, TODAY Enter the number of petals: 0 A flower has one petal at the least!