[Type B] Python Revision Tour-1 – Chapter 1

|
Table of Contents

3. Find and write the output of the following python code:

for Name in ['Jayes', 'Ramya', 'Taruna', 'Suraj'] :
    print (Name)
    if Name[0] == 'T' :
        break
    else :
        print("Finished!")
print ('Got it!')
Output
Jayes
Finished!
Ramya
Finished!
Taruna
Got it!
Python
"Spread the light within, illuminate the hearts around you. Sharing is not just an action, but a sacred journey of connecting souls."~ Anonymous

Leave a Reply

Your email address will not be published. Required fields are marked *