-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.py
More file actions
41 lines (34 loc) · 934 Bytes
/
game.py
File metadata and controls
41 lines (34 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
print("Bilgi Oyununa Hoş Geldiniz!")
playing = input("Başlayalım mı? ")
if playing.lower() != "evet":
quit()
print("Hadi oynayalım! :)")
score = 0
puan = 100
answer = input("Bu program hangi yazılım dil ile yazıldı? : ")
if answer.lower() == "python":
print('Doğru!')
score += 1
puan -= 10
else:
print("Yanlış!:(")
answer = input("Python yazı değişkenine ne denir? : ")
if answer.lower() == "string":
print('Doğru!')
score += 1
else:
print("Yanlış!:(")
answer = input("onbes ile str(15) toplamı kaçtır? : ")
if answer.lower() == "onbes15":
print('Doğru!')
score += 1
else:
print("Yanlış!:(")
answer = input("değişken hangi sembol ile atanır? : ")
if answer.lower() == "esittir":
print('Doğru!')
score += 1
else:
print("Yanlış!:(")
print(str(score) + " Soruyu doğru bildin, Tebrikler!")
print("Skor Yüzde " + str((score / 4) * 100) + "%.")