pycharm bemängelt nur noch rechtschreibung

This commit is contained in:
2023-08-16 12:46:52 +02:00
parent 6453ecb156
commit 16dc93b89e
2 changed files with 12 additions and 7 deletions

6
.idea/encodings.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/Versionsgeschichte.txt" charset="windows-1252" />
</component>
</project>

View File

@@ -166,6 +166,7 @@ def dec_to_deg(lat_dec, lon_dec):
# ***ReverseWherIGo zu Dezimalgrad
def rwig_to_coords(a, b, c):
lat, lon = 0, 0
a = int(a)
b = int(b)
c = int(c)
@@ -465,15 +466,13 @@ wiedergegeben.""" + "\n\n")
if i.upper() not in abcgross:
atxt = atxt + i # nicht codierbare Zeichen direkt zur Ausgabe bitte!
continue
if i == i.upper():
abc = abcgross
abc = abcgross
if i == i.lower():
abc = abcklein
abcl = len(abc)
for j in range(abcl):
for j in range(26):
if i == abc[j]:
if j + r >= abcl:
atxt = atxt + abc[j + r - abcl]
if j + r >= 26:
atxt = atxt + abc[j + r - 26]
else:
atxt = atxt + abc[j + r]
Ausgabe.insert(1.0, " " + atxt + "\n")
@@ -1630,10 +1629,10 @@ Primzahl ist.
n = n // i
if i > n:
break
out = "Die Zahl {} hat folgende Primfaktoren:\n".format(eingabetext)
if not faktoren:
Ausgabe.insert(1.0, "Die Zahl {} ist eine Primzahl!!\n".format(eingabetext))
else:
out = "Die Zahl {} hat folgende Primfaktoren:\n".format(eingabetext)
for z in faktoren:
out += str(z) + ", "
return Ausgabe.insert(1.0, out[:-2] + "\n")