I am trying to write a code, which will print a value to a certain amount of time which is indicated by the rep.
ex.
def bla(value, rep):
value*rep
bla('x', 2) # output: xx
the part which I do not know how to do is the function should ensure that the parameters given are valid.
I want the rep value to not operate if it is anything but an integer. example:
def bla(value, rep):
print (value*rep)
bla ('a', hello)
"sorry 'hello' is not a valid parameter"