On 09/10/2013 16:15, markot...@gmail.com wrote:
So i got it working, by saving palgad in a variable, before printing it and i
count the lines into a global variable. Ty
You are hereby placed in detention for one hour this evening. You will
spend the whole hour writing repeatedly "I must rem
So i got it working, by saving palgad in a variable, before printing it and i
count the lines into a global variable. Ty
--
https://mail.python.org/mailman/listinfo/python-list
markot...@gmail.com writes:
> fail4 = "palgad.txt"
>
> f4 = open(fail4, "r")
>
> def koguarv_ridu failis(f):
> for i, l in enumerate(f):
> pass
> return i+1
>
> def palgad(f4):
> palgad = 0
> while True:
> f4r = f4.readline()
> if f4r == "":
>
On Thu, Oct 10, 2013 at 1:20 AM, wrote:
> def koguarv_ridu failis(f):
> for i, l in enumerate(f):
> pass
> return i+1
This will throw the exception you're seeing (by the way, it helps a
LOT to actually copy and paste the full error, including the traceback
- fortunately I can wor
fail4 = "palgad.txt"
f4 = open(fail4, "r")
def koguarv_ridu failis(f):
for i, l in enumerate(f):
pass
return i+1
def palgad(f4):
palgad = 0
while True:
f4r = f4.readline()
if f4r == "":
break
palgad += int(f4r[f4r.find(";")+1:])
ret