Skip to content

Lesson 2#2

Open
dzashivalov wants to merge 1 commit intomainfrom
Lesson_2
Open

Lesson 2#2
dzashivalov wants to merge 1 commit intomainfrom
Lesson_2

Conversation

@dzashivalov
Copy link
Owner

No description provided.

my_list = [22, 'editor', 887, 75.8, None]
for i in my_list:
print(f"{i}-{type(i)}")

No newline at end of file

Choose a reason for hiding this comment

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

выполнено

my_list = list(input("Введите целые числа через пробел: ").split())
for i in range(1, len(my_list), 2):
my_list.insert(i-1, my_list.pop(i))
print(my_list)

Choose a reason for hiding this comment

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

выполнено


# list

month_list = [None, 'Январь Зима', 'Февраль Зима', 'Март Весна', 'Апрель Весна', 'Май Весна', 'Июнь Лето',

Choose a reason for hiding this comment

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

выполнено, но вопрос для чего здесь элемент None,
его нужно убрать

user_str = list(input('Введети строку из нескольких слов, разделённых пробелами: ').split())

for i in range(len(user_str)):
print(i + 1, ')', user_str[i][:10]) No newline at end of file

Choose a reason for hiding this comment

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

выполнено

break

my_list.insert(i, user_number)
print(my_list) No newline at end of file

Choose a reason for hiding this comment

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

выполнено

Choose a reason for hiding this comment

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

нет задачи 6

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