-
Notifications
You must be signed in to change notification settings - Fork 51
ready_to_review #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ready_to_review #47
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| """ | ||
| Вивести кількість цілих чисел у списку | ||
|
|
||
| """ | ||
|
|
||
|
|
||
| my_list = ['qwert', 'abc', 3, 4.09, 7, 10, 'rtt'] | ||
| counter = 0 | ||
| for el in my_list: | ||
| if isinstance(int) == int: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Невірна умова, потрібно написати: if isinstance(el, int): |
||
| counter +=1 | ||
| print(counter) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| """ | ||
| Вивести слова в нижньому регістрі | ||
|
|
||
| """ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ` ` |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| """ | ||
| Знайти середне значення чисел у заданому користувачем діапазоні | ||
|
|
||
| """ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. `first_num, second_num = int(input("Введіть початковый елемент:")), int(input("Введіть кінцевий елемент:")) ` |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| """ | ||
| Користувач вводить число до 4000. Вивести число римськими цифрами. | ||
|
|
||
| """ | ||
|
|
||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Зайві відступи у коді |
||
|
|
||
| import re | ||
| def if_numb(text): | ||
| text = re.match(r'^[^4][\d]{1,3}',text) | ||
| def val_numb(): | ||
| while not if_numb(): | ||
| print("input number") | ||
| number = val_numb() | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ` ` |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зайві відступи у коді