This commit is contained in:
stockth
2019-07-23 08:00:34 +02:00
parent b9184bbe93
commit ce5f6345a3
3 changed files with 20 additions and 3 deletions
+4 -2
View File
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.7 (Projekttage)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
+1 -1
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (Projekttage)" project-jdk-type="Python SDK" />
</project>
+15
View File
@@ -0,0 +1,15 @@
import random
geheimzahl = random.randrange(32)
ratezahl = 0
while ratezahl != geheimzahl:
ratezahl = int(input("Raten Sie die geheime Zahl: "))
if ratezahl > geheimzahl:
print("Zu hoch")
elif ratezahl < geheimzahl:
print("Zu niedrig")
print("Herzlichen Glückwunsch! Die geheime Zahl war " + str(geheimzahl))