+ 3

Is there a way to sum up lines 82 - 90 in my code so i dont have to keep rewriting the same line like it is currently?

https://code.sololearn.com/c126hCzRL0sB/?ref=app

27th Nov 2017, 1:23 AM
jalen
jalen - avatar
3 Answers
+ 3
You could possibly use a for loop and keep reassigning one string variable to the function and then printing it: https://code.sololearn.com/c74LZAQpgdgx
27th Nov 2017, 1:35 AM
Zeke Williams
Zeke Williams - avatar
+ 2
@Zeke Williams nice I didnt think of this I'll have to use it thanks
27th Nov 2017, 1:54 AM
jalen
jalen - avatar
+ 1
šŸ˜¦
27th Nov 2017, 1:45 AM
Mason Neville
Mason Neville - avatar