Skip to content

Выполнение третьего задания - #3

Open
silverAndr wants to merge 1 commit into
mainfrom
lesson3
Open

Выполнение третьего задания#3
silverAndr wants to merge 1 commit into
mainfrom
lesson3

Conversation

@silverAndr

Copy link
Copy Markdown
Owner

Не доделал 5 задачку, не могу придумать как (

Comment threadtask5.py
my_list = str_numbers.split()
my_list = list(map(int, my_list))
return sum(my_list, my_sum)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

надо было проверять каждый элемент и если он является символом выхода, то прекращать суммирование

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

Да после разбора понял

Comment threadtask4.py
r = r * x
y -= 1
return r

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

При возведении в отрицательную степень надо 1 разделить на результат

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

про отрицательную совсем забыл. Надо вспоминать математику ))

Sign up for freeto 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

@silverAndr@evg-evtushenko@serebryakovAO