0
Help refactoring code for Superbowl winner?
Hello. I am an HR person and have no idea what I am doing lol. Been trying to learn basic programming the last few week's and threw together this chicken scratch to try and project superbowl winner. My code is very repetitive, I basically have like 750 lines of code and most of it is the same. There must be better/faster/shorter way. Thoughts? Thanks for helping out a newb. https://code.sololearn.com/cAdyXl8upGlo/?ref=app https://code.sololearn.com/cAdyXl8upGlo/?ref=app
4 Respuestas
+ 1
In your code, you will implement one thing that you may declare defined variables in an array. That will help you in your code a lot.
And in your code, so much if statements are there, so use 'while loop' instead of if statements.
And i will try to get logic behind your code and i will implement it as soon as possible.
Thank you.
0
Thanks Bipin Tatkare - (B. R. T)! I'll need to play around with it. I feel like an array is definitely the way to go, I may need a few more weeks of study to effectively manage. Thanks!