This commit is contained in:
2026-04-18 14:42:00 +05:00
commit ef77f101fa
96 changed files with 3134 additions and 0 deletions

11
labPython/lab3/TextFile8.py Executable file
View File

@@ -0,0 +1,11 @@
with open("d.txt", "r") as file:
maxX = 0
minX = int(file.readline().replace("\n", ""))
for x in file:
x = int(x.replace("\n", ""))
if maxX < x:
maxX = x
if minX > x:
minX = x
print(f"max: {maxX}, min: {minX}, calculate: {maxX - minX}")