t
This commit is contained in:
Generated
+4
-2
@@ -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">
|
||||
|
||||
Generated
+1
-1
@@ -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>
|
||||
@@ -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))
|
||||
Reference in New Issue
Block a user