-
Notifications
You must be signed in to change notification settings - Fork 50
Ready_for_review #62
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_for_review #62
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,5 @@ | ||
| """ | ||
| Check len of element, if len == 0, add to counter | ||
| UPD: Sorry, reviewer, I've no idea what this is supposed to mean, so let's just say we need to find all the | ||
| elements with a value of "" | ||
| """ | ||
|
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,5 @@ | ||
| """ | ||
| Text - list; print with step 3 | ||
| """ | ||
| text = ["Hello, my name is this"] | ||
|
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 commentThe reason will be displayed to describe this comment to others. Learn more. Тут не правильно оформлений слайс, слайс має бути оформлений так: |
||
| print(text 5: :3 1) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| """ | ||
| 2 float numbers: print list in range (num1, num2) | ||
| """ | ||
|
|
||
| lower_bound = int(input("Enter first number: ")) | ||
| upper_bound = int(input("Enter second number: ")) | ||
| if upper_bound >= lower_bound: | ||
| for i in range(lower_bound, upper_bound + 1): | ||
| print(i) | ||
| else: | ||
| for i in range(upper_bound, lower_bound + 1): | ||
| print(i) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| """ | ||
| You are given a "folder" with sub-folders and files. | ||
| User enters a file path. If it's executable (and you can find the file at the end), return True. | ||
| """ | ||
| import re | ||
|
|
||
|
|
||
| folder = ['D:', ['recycle bin'], ['tmp', ['old'], ['new folder1', 'asd.txt', 'asd.bak', 'find.me.bak']], 'hey.py'] | ||
| #file_path = 'D:/tmp/new folder1' | ||
| file_path = 'D:/tmp/new folder1' | ||
|
|
||
|
|
||
| def path_decoder(): | ||
| global file_path, filepathnew | ||
| filepathnew = file_path.split('/') | ||
| return filepathnew | ||
|
|
||
|
|
||
| def file_search(folder): | ||
| path_level = 0 | ||
| while path_level <= len(filepathnew): | ||
| regexpr = bool(re.findall(filepathnew[path_level], folder)) | ||
| if regexpr: | ||
| path+=1 | ||
| continue | ||
| current_folder = filepathnew[1] | ||
|
|
||
| #find length of filepathnew, use for cyclical search | ||
|
|
||
|
|
||
| #print(path_decoder()) |
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.
Завдання некоректно побудовано