[Tutor] Problem with little program
andreengels at gmail.com
Sun Mar 14 12:01:33 CET 2010
On Sat, Mar 13, 2010 at 7:56 PM, Marco Rompré <marcodrompre at 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):
> while c<n:
> print ca
> 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, andreengels at gmail.com
More information about the Tutor