I decided to follow the writing of my code and faced the problem of how to make the transfer of lines and expressions in Python.
def get_message ( self ) -& gt; str : retu f'etip training: {self.training_type} ; Duration: {Self.Duration: . 3 f} h.; Distance: {self.distance: . 3 f} km; Cf. Speed: {self.speed: . 3 f} km/h; The kcal was spent: {self.calories: f} . ' Def get_spent_calories ( self ) -& gt; float : mean_Speed = self.get_mean_Speed () Retu (Self.coeff_calorie_1 * mean_Speed - self.coEFF_CALORIE_2) * SELF.WEIT / SELF.M_IN_KM * SELF.DUURATIONS * SELF.H_IN_MIN
How to make a string transfer (did not exceed 79 characters) in the console the conclusion should be in one line. I apologize in advance for such a stupid question)
question@mail.ru
·