From f07889c536743b63bedd2858c9978e3caa4d9ac0 Mon Sep 17 00:00:00 2001 From: avs-abhishek123 <44190447+avs-abhishek123@users.noreply.github.com> Date: Sat, 29 Dec 2018 12:31:44 +0530 Subject: [PATCH] Update Extracting Data With Regular Expressions.py num has to be converted to int to compare it with 0 and[0] is a list it should be changed to 0 --- Week-2/Extracting Data With Regular Expressions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week-2/Extracting Data With Regular Expressions.py b/Week-2/Extracting Data With Regular Expressions.py index a243dec..60c1e83 100644 --- a/Week-2/Extracting Data With Regular Expressions.py +++ b/Week-2/Extracting Data With Regular Expressions.py @@ -18,7 +18,7 @@ for num in f: - if num >= [0]: + if int(num) >= 0: count = count + 1 sum = sum + int(num)