Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Beden_Kitle_Indeksi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""
Beden Kitle Indeksi Hesaplama
Bir kisinin ağırlığının, boyuna göre normal olup olmadığını gösteren parametreye Beden Kitle İndeksi denir.
Kısaca insanın kilosunu kişinin boy uzunluğunun karesine bölersek beden kitle indeksi ortaya çıkar.
Kullanıcıdan kilo ve boy uzunluğunu alip çıkan sonuç
25'in altindaysa NORMAL,
25-30 arasında ise FAZLA KİLOLU,
30-40 arasında ise OBEZ,
40 ve üzerinde ise AŞIRI ŞİŞMAN şeklinde uyarı yazdiriniz.
"""
while True:
print("******************************************************\n"
"*** Beden Kitle Indeksi Hesaplama ***\n"
"******************************************************")
kilo = float(input('Ağırlığınızı kg olarak giriniz: '))
boy = float(input('Boyunuzu m olarak giriniz: '))
indeks = kilo / (boy**2)
if indeks < 25 :
print("NORMAL")
elif indeks > 25 and indeks <= 30:
print("FAZLA KİLOLU")
elif indeks > 30 and indeks <= 40:
print("OBEZ")
else:
print("AŞIRI ŞİŞMAN")
41 changes: 41 additions & 0 deletions Ders_Puani_Hesaplama_Malik.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
"""
Ders Puani Hesaplama
Kullanıcıdan Adi, Soyadi, Ogrenci Numarasi,
4 ders adi, bu derslerin Vize ve Final notlari istenecektir.
Vize notunun % 40′ı ile Final Notunun %60′ınin toplamı yil sonu ortalamasini verecektir.
Ortalama 50‘den küçükse ekranda “KALDI“, 50 ve üstüyse ekranda “GEÇTİ” yazdırılacaktır.
Bu yazdirma islemi 4 ders icinde yapilacak ve dersler alt alta yazdirilacaktir.
"""

while True:
print("******************************************************\n"
"*** Ders Puani Hesaplama ***\n"
"******************************************************")
ad = input('Adınızı Giriniz: ')
soyad = input('Soyadınızı Giriniz: ')
numara = input('Ögrenci numaranızı Giriniz: ')

for i in range(4): # 4 ders ile ilgili bilgi girişlerini yapmak icin döngü olusturuyoruz
ders = input("\n {}. dersin adini giriniz: ".format(i+1))
vize = int(input("\n {}. dersin Vize notunu giriniz: ".format(i+1)))
final = int(input("\n {}. dersin Final notunu giriniz: ".format(i+1)))
ort = (vize*40+final*60)/100
sonuc = "KALDI" if ort < 50 else "GECTI"
if i == 0:
ders_1 = [ders, vize, final, ort, sonuc]
elif i == 1:
ders_2 = [ders, vize, final, ort, sonuc]
elif i == 2:
ders_3 = [ders, vize, final, ort, sonuc]
elif i == 3:
ders_4 = [ders, vize, final, ort, sonuc]

print("******************************************************\n"
"*** SONUÇLAR ***\n"
"******************************************************")
print(f"\n{numara} Numaralı {ad} , {soyad} :")
print("\n{} Dersinden: {}".format(ders_1[0], ders_1[4]))
print("\n{} Dersinden: {}".format(ders_2[0], ders_2[4]))
print("\n{} Dersinden: {}".format(ders_3[0], ders_3[4]))
print("\n{} Dersinden: {}".format(ders_4[0], ders_4[4]))
quit()
74 changes: 74 additions & 0 deletions Rock_Paper_Scissors_Malik_ver1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
"""
**Rock-Paper-Scissors**
* Oyuncularin adlarini alip tas - kagit - makas oyunu oynatiniz.
* Oyun 10 el surecektir. 10 el sonunda kazanan belli olacaktir.
* Skor sonucta gosterilecektir.
"""
while True:
print("******************************************************\n"
"*** Rock-Paper-Scissors ***\n"
"******************************************************")
player_1 = input('1st Player Name: ')
player_1_points = 0

player_2 = input('2st Player Name: ')
player_2_points = 0

tour = 2

print("******************************************************\n"
"*** Please Make your choice in order. ***\n"
"******************************************************\n"
"* Rock = [1] *\n"
"* Paper = [2] *\n"
"* Scissors = [3] *\n"
"******************************************************")

for i in range(1, tour+1):

player_1_choice = input('1st Player Choice: ')
player_2_choice = input('2nd Player Choice: ')

if player_1_choice == "1" and player_2_choice == "1":
print(str(i) + ".Round Rock=Rock Draw")
elif player_1_choice == "1" and player_2_choice == "2":
print(str(i) + ".Round Paper>Rock Winner Player2")
player_2_points += 1
elif player_1_choice == "1" and player_2_choice == "3":
print(str(i) + ".Round Rock>Scissors Winner Player1")
player_1_points += 1

elif player_1_choice == "2" and player_2_choice == "1":
print(str(i) + ".Round Paper>Rock Winner Player1")
player_1_points += 1
elif player_1_choice == "2" and player_2_choice == "2":
print(str(i) + ".Round Paper=Paper Draw")
elif player_1_choice == "2" and player_2_choice == "3":
print(str(i) + ".Round Scissors>Paper Winner Player2")
player_2_points += 1

elif player_1_choice == "3" and player_2_choice == "1":
print(str(i) + ".Round Rock>Scissors Winner Player2")
player_2_points += 1
elif player_1_choice == "3" and player_2_choice == "2":
print(str(i) + ".Round Scissors>Paper Winner Player1")
player_1_points += 1
elif player_1_choice == "3" and player_2_choice == "3":
print(str(i) + ".Round Scissors=Scissors Draw")

print("******************************************************\n"
"*** Game Over ***\n"
"******************************************************\n")
if player_1_points == player_2_points:
winner = "Draw"
print(f'\n{player_1}:{player_1_points}'
f'\n{player_2}:{player_2_points}'
f'\n {winner} !')
else:
if player_1_points > player_2_points:
winner = player_1
elif player_1_points < player_2_points:
winner = player_2
print(f'\n{player_1}:{player_1_points}'
f'\n{player_2}:{player_2_points}'
f'\nWINNER is {winner} !')
67 changes: 67 additions & 0 deletions Rock_Paper_Scissors_Malik_ver2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
"""
**Rock-Paper-Scissors**
* Oyuncularin adlarini alip tas - kagit - makas oyunu oynatiniz.
* Oyun 10 el surecektir. 10 el sonunda kazanan belli olacaktir.
* Skor sonucta gosterilecektir.
"""
while True:
print("******************************************************\n"
"*** Rock-Paper-Scissors ***\n"
"******************************************************")
player_1 = input('1st Player Name: ')
player_1_points = 0

player_2 = input('2st Player Name: ')
player_2_points = 0

tour = 5
winner = ""

print("******************************************************\n"
"*** Please Make your choice in order. ***\n"
"******************************************************\n"
"* Rock = [1] *\n"
"* Paper = [2] *\n"
"* Scissors = [3] *\n"
"******************************************************")

for i in range(1, tour+1):

player_1_choice = input('1st Player Choice: ')
player_2_choice = input('2nd Player Choice: ')

if (player_1_choice == "1" and player_2_choice == "1") or\
(player_1_choice == "2" and player_2_choice == "2") or\
(player_1_choice == "3" and player_2_choice == "3"):
print(str(i) + ".Round Rock=Rock Draw")
elif (player_1_choice == "1" and player_2_choice == "3") or\
(player_1_choice == "2" and player_2_choice == "1") or\
(player_1_choice == "3" and player_2_choice == "2"):
print(str(i) + ".Round Rock>Scissors Winner Player1")
player_1_points += 1
elif (player_1_choice == "1" and player_2_choice == "2") or\
(player_1_choice == "2" and player_2_choice == "3") or\
(player_1_choice == "3" and player_2_choice == "1"):
print(str(i) + ".Round Paper>Rock Winner Player2")
player_2_points += 1
else:
print("Incorrect input. Try again.")
i -= 1
continue

print("******************************************************\n"
"*** Game Over ***\n"
"******************************************************\n")
if player_1_points == player_2_points:
winner = "Draw"
print(f'\n{player_1}:{player_1_points}'
f'\n{player_2}:{player_2_points}'
f'\n {winner} !')
else:
if player_1_points > player_2_points:
winner = player_1
elif player_1_points < player_2_points:
winner = player_2
print(f'\n{player_1}:{player_1_points}'
f'\n{player_2}:{player_2_points}'
f'\nWINNER is {winner} !')