python-basics-exercises icon indicating copy to clipboard operation
python-basics-exercises copied to clipboard

Can this be done more efficiently?

Open jmchamber58 opened this issue 5 years ago • 1 comments

I notice you doing the same thing repeatedly for nouns, verbs, and adjectives. Would a for loop work here to loop through a range (3) for items in noun, verb, adjective? I can't figure out how to do it though.

jmchamber58 avatar Oct 17 '20 15:10 jmchamber58

@jmchamber58 Yes, it could be done with less code. I will make a second solution available that does not contain so much repetition.

somacdivad avatar Oct 19 '20 20:10 somacdivad