+ 1

Zodiac project

Is there away to do this code without so many lines of if statements? https://code.sololearn.com/c750YF2rUU6L/?ref=app

19th Feb 2020, 10:41 PM
Zachary Wright
Zachary Wright - avatar
2 Answers
0
I mean, you COULD do it in a few lines using ternary operator..
19th Feb 2020, 10:44 PM
Sheecuri
Sheecuri - avatar
0
I put parts of the code into function and put array, condition and loop to work https://code.sololearn.com/cAgtf6233psq/?ref=app
20th Feb 2020, 5:04 AM
Ipang