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 5964a15

Browse files
Update 20171210-EsnekParamereliFonksiyonlar.py
1 parent 05dbc8a commit 5964a15

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎Phyton Sample Codes/20171210-EsnekParamereliFonksiyonlar.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ 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") :
12+
return True
13+
elif a == ("Y") :
1214
return True
1315

14-
elif a == ("T" and "t"):
16+
elif a == ("T"):
17+
return False
18+
elif a == ("t"):
1519
return False
1620
else:
1721
print("Yanlış giriş yaptınız.\nTekrar giriniz")

0 commit comments

Comments
(0)

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