Consider a situation where a person is very indecisive and unable to decide whether to do a particular given task, today

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Consider a situation where a person is very indecisive and unable to decide whether to do a particular given task, today

Post by answerhappygod »

Consider A Situation Where A Person Is Very Indecisive And Unable To Decide Whether To Do A Particular Given Task Today 1
Consider A Situation Where A Person Is Very Indecisive And Unable To Decide Whether To Do A Particular Given Task Today 1 (32 KiB) Viewed 24 times
PLEASE COMPLETE IN PYTHON USING deftoday_or_tommorrow(num_of_petals):
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!
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply