Skip to content

050_lesson#5

Open
ikrugloff wants to merge 1 commit intomasterfrom
050_lesson
Open

050_lesson#5
ikrugloff wants to merge 1 commit intomasterfrom
050_lesson

Conversation

@ikrugloff
Copy link
Owner

No description provided.

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

@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.

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

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

Choose a reason for hiding this comment

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

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

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

Choose a reason for hiding this comment

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

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

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

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