Skip to content

Vika_task1_sum_of_numer_set_in_string - #63

Open
victoriazubyk wants to merge 2 commits into
masterfrom
vika_task1_sum
Open

Vika_task1_sum_of_numer_set_in_string #63
victoriazubyk wants to merge 2 commits into
masterfrom
vika_task1_sum

Conversation

@victoriazubyk

Copy link
Copy Markdown
Collaborator

Add task 1

first_string_of_nums = "12345"
second_string_of_nums = "611091234512"

first_list = list(first_string_of_nums)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why do you need list here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

For converting str class into list class

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why?

count = sum(int(i) for i in first_list)

second_list = list(second_string_of_nums)
count2 = sum(int(n) for n in second_list)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

It's a bad name for a variable.

@UkrainianEngineer

Copy link
Copy Markdown
Owner

Please fix name of pull request because it's not clear what is it about.

Which sum? Sum of what?...

@UkrainianEngineer

Copy link
Copy Markdown
Owner

Why do we have commits for task 1 and task 2 in the scope of this pull request?

@victoriazubyk victoriazubyk changed the title Vika task1 sum Vika_task1_sum_of_numer_set_in_string Nov 21, 2018
@victoriazubyk

Copy link
Copy Markdown
Collaborator Author

Maybe commits for tasks turned out by accident

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