Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 48b07ca

Browse files
Esnek Paramereli Fonksiyonlar
1 parent 05dbc8a commit 48b07ca

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎Phyton Sample Codes/20171210-EsnekParamereliFonksiyonlar.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ def toplam(*sayılar):
88
def sayıSor():
99

1010
a = input("Yeni sayı eklemek istiyorsanız (Y), İşlemi tamamlamak için (T) tuşlayınız: ")
11-
if a == ("Y"and"y") :
11+
if a == "Y":
1212
return True
13-
14-
elif a == ("T" and "t"):
13+
elif a == "y":
14+
return True
15+
elif a == "T":
16+
return False
17+
elif a == "t":
1518
return False
1619
else:
1720
print("Yanlış giriş yaptınız.\nTekrar giriniz")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /