Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

do while python

##################################
# THERE IS NO DO-WHILE IN PYTHON #
##################################
## BEACUSE YOU DON'T NEED IT

# Here is the alternative
while True: # INFINITE LOOP (not really) # This is like do
  '''
  stuff to do
  '''
  if not (condition): # this is like while (condition)
  	break
Source by coderwall.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
2+3 =