Work in progress, sort doesn't work on strings?

This commit is contained in:
2020-04-12 14:39:45 +02:00
parent 80a586037c
commit 7383ed6bdf
2 changed files with 22 additions and 0 deletions

21
22/main.py Normal file
View File

@@ -0,0 +1,21 @@
import os
import math
import numpy as np
def main():
print("Hello, this is Patrick")
f = open("names.txt", 'r')
names = []
for name in f:
names.append(name)
names.sort()
print(names)
if __name__ == "__main__":
main()

1
22/names.txt Normal file

File diff suppressed because one or more lines are too long