week3 hw#13
Conversation
| list.sort() | ||
| for i in list: | ||
| print(i,end="-") | ||
| print(words()) No newline at end of file |
There was a problem hiding this comment.
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
| if ans: | ||
| print("true") | ||
| else: | ||
| print("false") No newline at end of file |
| 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 |
There was a problem hiding this comment.
tebrikler. sadece 1- fonksiyon cagrisini print icinde yapmayin. none ciktisi veriyor buyuzden son satirda.
2- yorum satirlari eklenebilir. # kullanarak
| 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 |
There was a problem hiding this comment.
yorum satirlari eklenebilir.
fonksiyon cagrisi read() seklinde olmali print() e gerek yok
| 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 |
There was a problem hiding this comment.
tebrikler. yorum satiri ve fonksiyon cagrisi daha iyi olabilir
No description provided.