From e618fb6395c83bd24110797337e0c8f25110d7f7 Mon Sep 17 00:00:00 2001 From: knyiharrolandjanos Date: Thu, 29 Sep 2022 08:30:12 +0200 Subject: [PATCH] kocka1 --- .idea/.gitignore | 3 +++ .../inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/kocka.iml | 10 ++++++++++ .idea/misc.xml | 4 ++++ .idea/modules.xml | 8 ++++++++ kockajatek.py | 20 +++++++++++++++++++ main.py | 0 7 files changed, 51 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/kocka.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 kockajatek.py create mode 100644 main.py diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/kocka.iml b/.idea/kocka.iml new file mode 100644 index 0000000..74d515a --- /dev/null +++ b/.idea/kocka.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..421c9b6 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..5d8be5d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/kockajatek.py b/kockajatek.py new file mode 100644 index 0000000..c812a86 --- /dev/null +++ b/kockajatek.py @@ -0,0 +1,20 @@ +import random; +lehetoseg=[1,2,3,4,5,6] +a= random.choice(lehetoseg) +b= random.choice(lehetoseg) +Tipp=(a+b); + +szam=(input("Adja meg a tippjét (2-12): ")) + +if Tipp in [2,3,12]: + print("Ön nem nyert") +elif Tipp in [7,11]: + print("Ön nyert!") +elif Tipp== szam: + print("Ön nyert") +else: + print("Ön nem nyert") + +print(Tipp) +print("A dobás utcán a kockák értékei: ", a,"és",b, "Összesen:",Tipp,) + diff --git a/main.py b/main.py new file mode 100644 index 0000000..e69de29