Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Python
(view source)
Revision as of 09:25, 5 April 2015
192 bytes added
,
09:25, 5 April 2015
→if/then/else
Line 90:
Line 90:
=== Conditional ===
=== Conditional ===
−
==== if/
then
/else ====
+
==== if/
elif
/else ====
+
<source lang="python">
+
if a < 10:
+
print "Less than 10"
+
elif a >= 10 and a < 20:
+
print "a greater or equal to 10 and less than 20"
+
else:
+
print "a greater or equal to 20"
+
</source>
+
==== try/except/finally ====
==== try/except/finally ====
=== Loops ===
=== Loops ===
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version