Work in progress, sort doesn't work on strings?
This commit is contained in:
21
22/main.py
Normal file
21
22/main.py
Normal 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
1
22/names.txt
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user