-
Notifications
You must be signed in to change notification settings - Fork 36
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
8.hafta_odevler_zerrin #7
base: master
Are you sure you want to change the base?
Conversation
sayi1 = int(input("Sayi-1:" )) | ||
sayi2 = int(input("Sayi-2: ")) | ||
|
||
print("Ebob: ", ebob_bulma(sayi1,sayi2)) |
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.
input aldiginiz ve sonucu ekrana printlediginiz kismi fonksiyonun disinda tutmussunuz, bu bir hata degil ancak soruda tanimlandigi uzere fonksiyona ait bir ozellik de degil.
if (sayi1==1 and sayi2 ==1): | ||
break | ||
|
||
return ekok |
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.
return bir tab iceride olmali, su haliyle program while dongusune giriyor, ekok degiskenine yeni bir deger atiyor ancak bu donguden cikamiyor.
sayi1 = int(input("Sayi - 1:")) | ||
sayi2 = int(input("Sayi - 2:")) | ||
|
||
print("Ekok", ekok_bulma(sayi1,sayi2)) |
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.
inputlar ve ekrana yazdirma ozellikleri fonksiyona bagli bir ozellik olmali, dolayisiyla bu satirlari fonksiyonun icine tasimali ve fonksiyonu cagirmalisiniz.
|
||
birler = ["", "Bir", "İki", "Üç","Dört","Beş","Altı","Yedi","Sekiz","Dokuz"] | ||
|
||
onlar = ["","On","Yirmi","Otuz","Kırk","Elli","Altmış","Yetmiş","Seksen","Doksan"] |
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.
burada tanimladiginiz birler ve onlar listelerinin kapsamina yazdiginiz fonksiyonda dahil ancak daha uzun kodlar yazdiginizda bu bir problem olusturabilir. Dolayisiyla tavsiyem fonksiyona bagli degiskenleri fonksiyon icinde tanimlamaniz.
No description provided.