Skip to content

Exercising What is problem here? #12665

Closed
@Random13-sketch

Description

@Random13-sketch

from time import sleep
class Workout:
def init(self, exercise,time):#time with seconds
self.exercise = exercise
self.time = time

def counting_time(self):#time with secons for i in range (self.time, 0, -1): sleep(1) print(i) sleep(1) print(f"{self.exercise} has been finished succesfully in {self.time} seconds") 

workout1=Workout("Running", int(input("Enter the time that you want to exercise > ")))
workout1.counting_time(self.time)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close