Skip to content

Comments

ДЗ к 6 уроку#4

Open
getblad wants to merge 1 commit intomasterfrom
lesson6
Open

ДЗ к 6 уроку#4
getblad wants to merge 1 commit intomasterfrom
lesson6

Conversation

@getblad
Copy link
Owner

@getblad getblad commented Sep 19, 2020

No description provided.

__color = [('красный', 2), ('желтый', 2), ('зеленый', 3)]

def running(self):
for a, b in self.__color:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

хорошо! давай улучшим немного и обзовём переменные как light_color и light_time

self._width = width

def mass(self, thickness, mass_sm):
return self._length*self._width*thickness*mass_sm

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

помни про форматирование

print(f'Общий доход {self._income["wage"]+self._income["bonus"]}')


a = Position("Иван", "Иванов", 'worker1')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут тоже обзови переменную более информативно

@@ -0,0 +1,54 @@
class Car:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

отлично!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants