Skip to content

050_lesson#5

Open
ikrugloff wants to merge 1 commit into
masterfrom
050_lesson
Open

050_lesson#5
ikrugloff wants to merge 1 commit into
masterfrom
050_lesson

Conversation

@ikrugloff
Copy link
Copy Markdown
Owner

No description provided.

@ikrugloff ikrugloff changed the title Lesson 5 HW 050_lesson Sep 7, 2018
Copy link
Copy Markdown

@Dzhoker1 Dzhoker1 left a comment

Choose a reason for hiding this comment

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

Оставил комментарии по коду

Comment thread task_01_1.py
if start_input_data == 'y' or start_input_data == 'Y':
while True:
name = input('Please enter company name: ')
if name == 'q' or name == 'Q':
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Зачем же столько дублирования кода. Мы уже прошли циклы, можно было загнать в них.

Comment thread task_01_1.py
comp_f_counter += 1
continue
else:
sys.exit() No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Расписали задачу от и до. Клёво

Comment thread task_02.py
num2_list.append(num2)
print(f'2-nd entered number in hexadecimal notation is: {num2_list}')

sum_num = hex(int(num1_raw, 16) + int(num2_raw, 16)).upper()[2:]
Copy link
Copy Markdown

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