This commit is contained in:
knyiharrolandjanos 2022-09-29 08:30:12 +02:00
commit e618fb6395
7 changed files with 51 additions and 0 deletions

3
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

10
.idea/kocka.iml Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

4
.idea/misc.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (kocka)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/kocka.iml" filepath="$PROJECT_DIR$/.idea/kocka.iml" />
</modules>
</component>
</project>

20
kockajatek.py Normal file
View File

@ -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,)

0
main.py Normal file
View File