- #1
NATURE.M
- 301
- 0
Homework Statement
Lets say we have two strings 'movies' and ' goto'. Now the question indicates to return this combination concatenated n times, except if n is negative, it is the same as if it were 0.
The Attempt at a Solution
Concatenation n times would yield: n*"movies goto"
Now if n is negative it performs in the same way you would expect 0 to perform, so would that just return None ?
Like if n = 0, or n = -4 should it just return None?