Coding in Python: Tips and Tricks to Coding with Python Using the Principles and Theories of Python Programming by Matthews Robert c

Coding in Python: Tips and Tricks to Coding with Python Using the Principles and Theories of Python Programming by Matthews Robert c

Author:Matthews, Robert c. [Matthews, Robert c.]
Language: eng
Format: epub, pdf
Published: 2020-11-02T00:00:00+00:00


The Continue Statement

Instead of breaking out of the loop without the execution of the rest of the code, you can deploy the continue statement to get back to the beginning of loop after doing the conditional test. See the following example.

c_number = 50

while c_number < 200:

c_number += 3

if c_number % 2 == 0:

continue

print(c_number)

= RESTART: C:/Users/saifia computers/Desktop/strike game.py

53

59

65

71

77

83

89

95

101

107

113

119

125

131

137

143

149

155

161

167

173

179

185

191

197

>>>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.