Skip to content

week3 hw#13

Open
koclu wants to merge 6 commits into
fenyx-it-academy:mainfrom
koclu:main
Open

week3 hw#13
koclu wants to merge 6 commits into
fenyx-it-academy:mainfrom
koclu:main

Conversation

@koclu
Copy link
Copy Markdown

@koclu koclu commented Oct 2, 2021

No description provided.

Comment thread alphabetical_order.py
list.sort()
for i in list:
print(i,end="-")
print(words()) 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.

cok guzel fakat fonksiyonu cagrisini print fonksiyonu icinde yazdiginiz icin none degeri yazdiriyor ensonda. son satir sadece: words() yeterli. Ancak bu seferde son kelimenin sonuna - isareti yazar. onuda biraz daha dusunseniz temizlenir. mesela for loop icine if i==list[-1]: gibi bir sart koyarak yada baska yollar bulunabilir

Comment thread equal_reverse.py
if ans:
print("true")
else:
print("false") 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.

temiz ve kisa cozum tebrikler

Comment thread perfect_number.py
if sum == i: # if sum of divisor equal to number it means number is perfect
perfectlist.append(i)
return print(perfectlist)
print(perfect()) 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.

tebrikler. sadece 1- fonksiyon cagrisini print icinde yapmayin. none ciktisi veriyor buyuzden son satirda.
2- yorum satirlari eklenebilir. # kullanarak

Comment thread reading_number.py
return print(ones[one], "teen")
else:
return print(tens[ten], ones[one]) # write without {} + teen. it is 20,21,22,...
print(read()) 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.

yorum satirlari eklenebilir.
fonksiyon cagrisi read() seklinde olmali print() e gerek yok

Comment thread unique_list.py
res = []
[res.append(x) for x in test_list if x not in res]
return res
print (unique_list([1, 1, 1, 2, 2, 3, 3])) 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.

tebrikler. yorum satiri ve fonksiyon cagrisi daha iyi olabilir

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