- 5
Run the program and give output
http://py4e-data.dr-chuck.net/regex_sum_485538.txt Download this text file and make sure to save the file into the same folder as you will be writing your Python program. Program code:: import re k=open('regex_sum_485538.txt') x=re.findall('[0-9]+',k) sum=0 for y in x: sum+=y print(sum)
1 Antwoord
+ 1
Jaypat Is this your problem?