Skip to content
Draft
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
49 changes: 49 additions & 0 deletions 1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
oyuncu_1 = input("1. Oyuncu Adiniz : ")
oyuncu_2 = input("2. Oyuncu Adiniz : ")


oyuncu_1_skor = 0
oyuncu_2_skor = 0

tur = 1

while tur < 11 :

oyuncu_1_tercih = input("1. oyuncunun tercihi (T - K - M) : ")
oyuncu_2_tercih = input("2. oyuncunun tercihi (T - K - M) : ")

if oyuncu_1_tercih == 'T' and oyuncu_2_tercih == 'M' :
print(oyuncu_1 + ", " + str(tur) + ". eli kazandi")
tur += 1
oyuncu_1_skor += 1
elif oyuncu_1_tercih == 'T' and oyuncu_2_tercih == 'K' :
print(oyuncu_2 + ", " + str(tur) + ". eli kazandi")
tur += 1
oyuncu_2_skor += 1
elif oyuncu_1_tercih == 'K' and oyuncu_2_tercih == 'M' :
print(oyuncu_2 + ", " + str(tur) + ". eli kazandi")
tur += 1
oyuncu_2_skor += 1
elif oyuncu_1_tercih == 'K' and oyuncu_2_tercih == 'T' :
print(oyuncu_1 + ", " + str(tur) + ". eli kazandi")
tur += 1
oyuncu_1_skor += 1
elif oyuncu_1_tercih == 'M' and oyuncu_2_tercih == 'K' :
print(oyuncu_1 + ", " + str(tur) + ". eli kazandi")
tur += 1
oyuncu_1_skor += 1
elif oyuncu_1_tercih == 'M' and oyuncu_2_tercih == 'T' :
print(oyuncu_2 + ", " + str(tur) + ". eli kazandi")
tur += 1
oyuncu_2_skor += 1
else:
print("Tercihler ayni. Tekrar edin")

else:
print("Oyun bitti")
if oyuncu_1_skor > oyuncu_2_skor:
print("{} kazandi. Skor {} - {}".format(oyuncu_1, oyuncu_1_skor, oyuncu_2_skor))
elif oyuncu_2_skor > oyuncu_1_skor:
print("{} kazandi. Skor {} - {}".format(oyuncu_2, oyuncu_2_skor, oyuncu_1_skor))
else:
print("Oyun berabere.")
35 changes: 35 additions & 0 deletions 2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
ad = input('Adiniz : ')
soyad = input('Soyadiniz : ')
no = input('Ogrenci numaraniz : ')

ders_1 = input('Ders 1 : ')
ders_1_vize = int(input('Ders 1 vize notunuz : '))
ders_1_final = int(input('Ders 1 final notunuz : '))

ders_2 = input('Ders 2 : ')
ders_2_vize = int(input('Ders 2 vize notunuz : '))
ders_2_final = int(input('Ders 2 final notunuz : '))

ders_3 = input('Ders 3 : ')
ders_3_vize = int(input('Ders 3 vize notunuz : '))
ders_3_final = int(input('Ders 3 final notunuz : '))

ders_4 = input('Ders 4 : ')
ders_4_vize = int(input('Ders 4 vize notunuz : '))
ders_4_final = int(input('Ders 4 final notunuz : '))

ders_1_ortalama = (ders_1_vize * 0.4) + (ders_1_final * 0.6)
ders_2_ortalama = (ders_2_vize * 0.4) + (ders_2_final * 0.6)
ders_3_ortalama = (ders_3_vize * 0.4) + (ders_3_final * 0.6)
ders_4_ortalama = (ders_4_vize * 0.4) + (ders_4_final * 0.6)

dersler_ortalama = [ders_1_ortalama, ders_2_ortalama, ders_3_ortalama, ders_4_ortalama]

print("Sayin {} {}, bu donem almis oldugunuz \n1. {}, \n2.{}, \n3.{} ve \n4.{} derslerinin yil sonu basari durumu asagida sirayla gosterilmistir.".format(ad, soyad, ders_1, ders_2, ders_3, ders_4))

for i in dersler_ortalama:
if(i < 50):
print("Kaldı")
else:
print("Geçti")

17 changes: 17 additions & 0 deletions 3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
boy = int(input("Boyunuzu cm olarak giriniz : "))
kilo = float(input("Kilonuzu tam olarak giriniz : "))

bki= kilo /((boy/100)**2)


if bki < 25:
print("Beden kitle indeksiniz Normal. Boyle devam edin.")

elif 25 <= bki < 30 :
print("Beden kitle indeksiniz Fazla Kilolu. Bu gidis gidis degil. Bak soylemedi deme.")

elif 30 <= bki < 40 :
print("Beden kitle indeksiniz Obez. Yavas ye bogulacan.")

else:
print("Beden kitle indeksiniz Asiri Sisman. Olmusun aglayanin yok.")