A local news station needs your help to generate the scrolling text for the headlines!
Create a function that returns a list of strings, where each string contains a single frame of what the scrolling text will look like.
n characters.The example below will demonstrate the output when the screen width is 10.
news_at_ten("innokodakademija", 10) ➞ [
" ",
" e",
" ed",
" eda",
" edab",
" edabi",
" innokodakademija",
" innokodakademija ",
" innokodakademija ",
" innokodakademija ",
"innokodakademija ",
"dabit ",
"abit ",
"bit ",
"it ",
"t ",
" "
]
n characters long, so you should pad the string with spaces if the text isn't long enough.