This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
total = 0 | |
ng50=0 | |
n50=0 | |
cursor = 0 | |
nums=[] | |
with open('l.txt', 'r') as inp, open('output.txt', 'w') as outp: | |
for line in inp: | |
try: | |
num = float(line) | |
total+=num |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am imilas on github. | |
* I am amirdb (https://keybase.io/amirdb) on keybase. | |
* I have a public key ASDxax2QIkKCMrlWepLRJX5R_aVMjQka0uJ242vGzeqlZwo | |
To claim this, I am signing this object: |