Quick actions

cmd+k|ctrl+k

Navigation

Languages

While Loop 2

Snippet info

Language

Python

Visibility

public

Author

ankushsahu203

Created

2026-07-21T05:21:30.361394Z

Updated

2026-07-21T05:21:30.361394Z

# my_list=[1,2,3]
# for item in my_list:
#     print(item)
    
# i=0
# while i<len(my_list):
#     print(my_list[i])
#     i+=1

while True:
    response=input("say something: ")
    if (response=="bye"):
        break
INFO