Do while loops python?



Do while loops python?..

Answer / Raj Priya

Python does not have an explicit 'do-while' loop, but you can achieve the same functionality using a 'while' loop with the condition check at the end of the loop:nn```pythonnwhile True:n # your code heren if condition:n break```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Which is better r or python?

1 Answers  


What is the most "pythonic" way to iterate over a list in chunks?

1 Answers  


How is print statement represented in python 3 (v/s python2)?

1 Answers  


How can you sort a list?

1 Answers  


Which operator will be helpful for decision making statements?

1 Answers  


What is the output of the following code and why?

1 Answers  


What is return in python?

1 Answers  


What are the basic datatypes in python?

1 Answers  


Explain python list comprehension?

1 Answers  


What is abs in python?

1 Answers  


Python documentation is called?

1 Answers  


Explain about cookies in python?

1 Answers  


Categories