Nov-14-2016, 08:36 PM
Yes, but if it's for homework you should probably just leave it as-is. Otherwise it'll look like you just copied code from the internet :p
That said, you can remove line 47 entirely. You already set "words" before the while loop, so setting it repeatedly within the while loop is not necessary. It doesn't hurt anything, it's just not needed.
That said, you can remove line 47 entirely. You already set "words" before the while loop, so setting it repeatedly within the while loop is not necessary. It doesn't hurt anything, it's just not needed.