Skip to content

Выполнение второго задания#2

Open
silverAndr wants to merge 1 commit intomainfrom
lesson2
Open

Выполнение второго задания#2
silverAndr wants to merge 1 commit intomainfrom
lesson2

Conversation

@silverAndr
Copy link
Owner

No description provided.

long_string = input('Введите сроку: ')
list_words = long_string.split()
for ind, word in enumerate(list_words, 1):
print(ind, word[:9])

Choose a reason for hiding this comment

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

Почему 9) последний не включается же

Copy link
Owner Author

Choose a reason for hiding this comment

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

Поспешил, запустил код с :10, и показалось не правильно вывелось. Вообщем недо-тест.

@@ -0,0 +1,28 @@
# Реализовать структуру данных «Товары».
products = []
product_params = {'name': 'Название', 'price': 'цена', 'count': 'Количество', 'ed': 'ед'}

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.

3 participants