Попытка выполнить ДЗ 2#290
Open
OstAAle wants to merge 1 commit into
Open
Conversation
| i = 1 | ||
| for fruit in fruits: | ||
| print (str(i)+ ". {:>4}".format(fruit)) | ||
| i = i+1 |
| if i==j: | ||
| array_1.pop(i) | ||
| print(array_1) | ||
|
|
| else: | ||
| a = a*2 | ||
| new_array.insert(count,a) | ||
| print (new_array) No newline at end of file |
| if a > 0 and (math.sqrt(a))%1 == 0: | ||
| new_array.append(int(math.sqrt(a))) | ||
| print (new_array) | ||
|
|
| day = {"01" : "первое", "02" : "второе", "03" : "третье"} # и т.д. | ||
| month = {"01" : "января","02" : "февраля","03" : "марта"} # и т.д. | ||
| print("{} {} {} года.".format((day[new_date[0]]), (month[new_date[1]]),(new_date[2])) | ||
|
|
| q_array.append(random.randint(-100,100)) | ||
| s +=1 | ||
| print (q_array) | ||
|
|
| b += 1 | ||
| print(array_4) | ||
| array_5 = set(array_4) | ||
| print (array_5) |
There was a problem hiding this comment.
сделали я так понимаю только букву a)
а еще b
ну и лучше работать со списками, который заданы, а не создавать свой, так лучше видно, как работает алгоритм
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.