Skip to content

first commit#2

Open
Barrakuda8 wants to merge 1 commit into
mainfrom
lesson2
Open

first commit#2
Barrakuda8 wants to merge 1 commit into
mainfrom
lesson2

Conversation

@Barrakuda8

Copy link
Copy Markdown
Owner

No description provided.

Comment thread task1.py
print(f'Результат: {eval(f"{first} {operation} {second}")}')
calc()

calc()

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 task2.py
return [even_odd_count(num // 10)[0] + even_odd_count(num % 10)[0],
even_odd_count(num // 10)[1] + even_odd_count(num % 10)[1]]

print(even_odd_count(int_input('Введите число: ')))

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 task3.py
return f'{num % 10}{reverse_int(num // 10)}'


print(reverse_int(int_input('Введите число: ')))

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 task4.py
else:
return sum_n(n - 1) + ((sum_n(n - 1) - sum_n(n - 2)) / (-2))

print(sum_n(pos_input('Введите число больше 0: ')))

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 task5.py


print(show_ascii(32, 127))

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 task6.py
guess(num, try_count - 1)


guess(randrange(0, 100))

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 task7.py

# print(rec_sum(101))
# print(101 * (101 + 1)/2)
print(check(101)) 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.

выполнено

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