bug fix ich hasse mich

This commit is contained in:
2019-07-24 13:33:27 +02:00
parent cbe147f776
commit 1694714e10
3 changed files with 2 additions and 33 deletions
+2 -1
View File
@@ -26,7 +26,8 @@ class Formel:
def set_geg(self):
for element in self.dicts[0]:
for element1 in self.formel.liste:
element1.set(self.dicts[0][element])
if element == element1.formelsymbol:
element1.set(self.dicts[0][element])
def set_dicts(self, dicts):
self.dicts = dicts
-14
View File
@@ -1,14 +0,0 @@
import random
geheimzahl=random.randrange(30)
Zahl=0
while Zahl != geheimzahl :
Zahl = int(input ("Errate die Zahl"))
if Zahl>geheimzahl:
print("zu groß du Lappen")
elif Zahl<geheimzahl:
print("zu klein")
else:
print("du hast die Zahl erraten")
-18
View File
@@ -1,18 +0,0 @@
import random
geheimzahl =random.randrange(40)
zahl = 0
while zahl != geheimzahl:
zahl = int(input ('Errate die Zahl!!'))
print ("Errate die Zahl!!")
print (zahl)
if zahl>geheimzahl:
print ("zu groß")
elif zahl<geheimzahl:
print ("zu kleen")
else:
print ("JÖAR GANZ GENAU!!!")