mercredi 8 décembre 2021

How do I write a Python Function to display a message to indicate the progress of an operation [closed]

The function should display a message in the following format: '{operation} {status}.'

Where {operation} is the value of the parameter passed to this function
and
{status} is 'has started' if the value of the parameter 'value' is 0
{status} is 'is in progress ({value}% completed)' if the value of the parameter 'value' is between,
but not including, 0 and 100
{status} is 'has completed' if the value of the parameter 'value' is 100

Aucun commentaire:

Enregistrer un commentaire