Intermediate Python: Title Encoder | Sololearn: Learn to code for FREE!

0

Intermediate Python: Title Encoder

Little help here, I want to print "YN", "BM" and "NS" on separate lines https://code.sololearn.com/cqCfvvhSNN51/?ref=app

5/7/2021 12:43:21 PM

Frimpong Godfred

6 Answers

New Answer

+2

1. Made i +=1 in while cycle, not in for 2. Count len wìthout +1

+1

+1

Sorry, len must be without +1

+1

Yeah I corrected that

0

Hi! they are now printed on separate lines.

0

Yeah, but not all got printed The second ELEMENT in the list wasn't printed