DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
what will be the output of the following python code? i = 0 while i < 5: print(i) i += 1 if i == 3: break else: print(0)
i= 0 while i < 5: print(i) i += 1 if i == 3: break else: print(0) # # Output # 0 # 0 # 1 # 0 # 2
PREVIOUS
NEXT
Tagged:
#output
#python
#break
ADD COMMENT
Topic
COMMENT
Name
5+1 =
Submit