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 help me
--
Marc-O. Rompré
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor