On Sat, Mar 13, 2010 at 7:56 PM, Marco Rompré <marcodrom...@gmail.com> wrote: > Hello I have a little problem, I am trying to define a function ligneCar(n, > ca) that would print n times the caracters ca. > For now I have the user entering a short sentence corresponding to ca. > Here is my code: > def ligneCar(n,ca): > c=0 > while c<n: > print ca > c+=1 > ca = input ('Enter a short phrase : ') > n = input ('Enter how many times you want : ') > Thats the definition of my function ligne_Car > then in another python file > I want to recall my function ligne_Car but it is not working.
Please give us more information - what code are you using to 'recall' your function, what were you expecting to be the result and what is actually the result? -- André Engels, andreeng...@gmail.com _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor