Discover the answers to your questions at Westonci.ca, where experts share their knowledge and insights with you. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.
Sagot :
The output for; for i in range(1,6): if i==3: print('hello') break else: print(i) print('done') the output for the given Python program is 001020340.
What is range () in Python?
The python range() function creates a collection of numbers on the fly, like 0, 1, 2, 3, 4. This is very useful, since the numbers can be used to index into collections such as string. The range() function can be called in a few different way.
- The given program is as:
- i =0
- while i < 5
- print(i)
- i +=1
- if i==3 :
- break
- else:
- print(0)
- It will give the following as result 001020340
- Hence, the answer is 001020340.
Read more bout the python :
https://brainly.com/question/26497128
#SPJ1
Thank you for your visit. We're dedicated to helping you find the information you need, whenever you need it. We hope our answers were useful. Return anytime for more information and answers to any other questions you have. We're dedicated to helping you find the answers you need at Westonci.ca. Don't hesitate to return for more.