From c3d140ff1fddbf0461c69b5086f3bbe79ebd4ac1 Mon Sep 17 00:00:00 2001 From: ibrahimmasmanaci Date: Mon, 7 Mar 2022 11:35:35 +0300 Subject: [PATCH 1/2] problem solved --- Stringler/ibrahimmasmanaci.py | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Stringler/ibrahimmasmanaci.py diff --git a/Stringler/ibrahimmasmanaci.py b/Stringler/ibrahimmasmanaci.py new file mode 100644 index 0000000..f68fb3f --- /dev/null +++ b/Stringler/ibrahimmasmanaci.py @@ -0,0 +1,36 @@ + +# coded by IBRAHIM MASMANACI + + +#Solution by using for loop +name = input("Please enter something to check :") +print("The original string is : " + str(name)) +result = False +for i in name: + # checking for uppercase character and flagging + if i.isupper(): + result = True + break +# printing result +print("Does String contain uppercase character : " + str(result)) +#second = input("Please enter the input : ") +#if second.__contains__(result): + + + +#Solution without using any loop +nameSec = input("Please enter something to check :") +if nameSec.islower(): + print("girilen kelime kücük harflerden olusur") +else : + print("girilen kelimede büyük hafrlerde bulunuyor.") + + + + + + + + + + From ac7b8dc25b049547c6991b2f7c557adec76d0496 Mon Sep 17 00:00:00 2001 From: ibrahimmasmanaci Date: Mon, 7 Mar 2022 12:15:39 +0300 Subject: [PATCH 2/2] =?UTF-8?q?Tas,Kag=C4=B1t,makas=20problem=20solved?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ibrahimmasmanaciDongu.py" | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 "D\303\266ng\303\274ler/ibrahimmasmanaciDongu.py" diff --git "a/D\303\266ng\303\274ler/ibrahimmasmanaciDongu.py" "b/D\303\266ng\303\274ler/ibrahimmasmanaciDongu.py" new file mode 100644 index 0000000..a2a156a --- /dev/null +++ "b/D\303\266ng\303\274ler/ibrahimmasmanaciDongu.py" @@ -0,0 +1,72 @@ +import random + +#Coded by ibrahim Masmanacı +#Game iterates unless there is a winner , otherwise it loops. + +gameLoops = True + +while (gameLoops): + userSelection = input("Birini sec ! -> (1 = Taş) , (2 = Kağıt) , (3 = Makas ) = ") + i = (random.randint(1, 3)) + pcSelection = "" + + if i == 1: + pcSelection = "Taş" + if (userSelection == "1" or "Taş"): + print("Pc secimi = " + pcSelection + ", Senin secimin = " + "Taş") + print("berabere!") + gameLoops = True + elif (userSelection =="2" or "Kağıt"): + print("Pc secimi = " + pcSelection + ", Senin secimin = " + "Kağıt") + print("Kazandın!") + gameLoops= False + elif (userSelection =="3" or "Makas"): + print("Pc secimi = " + pcSelection + ", Senin secimin = " + "Makas") + print("Kaybettin!") + gameLoops = False + + elif i== 2 : + pcSelection = "Kağıt" + if (userSelection == "1" or "Taş"): + print("Pc secimi = " + pcSelection + ", Senin secimin = " + "Taş") + print("kaybettin!") + gameLoops = False + + elif (userSelection =="2" or "Kağıt"): + print("Pc secimi = " + pcSelection + ", Senin secimin = " + "Kağıt") + print("Berabere!") + gameLoops = True + + elif (userSelection == "3" or "Makas"): + print("Pc secimi = " + pcSelection + ", Senin secimin = " + "Makas") + print("Kaybettin!") + gameLoops = False + + elif i==3 : + pcSelection = "Makas" + if (userSelection == "1" or "Taş"): + print("Pc secimi = " + pcSelection + ", Senin secimin = " + "Taş") + print("kazandın!") + gameLoops = False + + elif (userSelection =="2" or "Kağıt"): + print("Pc secimi = " + pcSelection + ", Senin secimin = " + "Kağıt") + print("kaybettin!") + gameLoops = False + + elif (userSelection == "3" or "Makas"): + print("Pc secimi = " + pcSelection + ", Senin secimin = " + "Makas") + print("berabere!") + gameLoops = True + + else: + print("Geçerli birsey seçemediniz..") + +request = input("Tekrar oynamak istiyorsanız (+)'ya oynamak istemiyorsanız (-)'ye tıklayınız") +if(request == "+") : + gameLoops = True +else: + gameLoops = False + + +