Skip to content

Попытка выполнить ДЗ 2#290

Open
OstAAle wants to merge 1 commit into
GeekBrainsTutorial:masterfrom
OstAAle:master
Open

Попытка выполнить ДЗ 2#290
OstAAle wants to merge 1 commit into
GeekBrainsTutorial:masterfrom
OstAAle:master

Conversation

@OstAAle

@OstAAle OstAAle commented Oct 24, 2018

Copy link
Copy Markdown

No description provided.

i = 1
for fruit in fruits:
print (str(i)+ ". {:>4}".format(fruit))
i = i+1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

отлично

if i==j:
array_1.pop(i)
print(array_1)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

красивый, лаконичный код

else:
a = a*2
new_array.insert(count,a)
print (new_array) 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.

все верно

if a > 0 and (math.sqrt(a))%1 == 0:
new_array.append(int(math.sqrt(a)))
print (new_array)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

хорошо

day = {"01" : "первое", "02" : "второе", "03" : "третье"} # и т.д.
month = {"01" : "января","02" : "февраля","03" : "марта"} # и т.д.
print("{} {} {} года.".format((day[new_date[0]]), (month[new_date[1]]),(new_date[2]))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

отлично

q_array.append(random.randint(-100,100))
s +=1
print (q_array)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

все верно

b += 1
print(array_4)
array_5 = set(array_4)
print (array_5)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

сделали я так понимаю только букву a)
а еще b

ну и лучше работать со списками, который заданы, а не создавать свой, так лучше видно, как работает алгоритм

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