mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 23:33:00 +03:00
commit
d55031937d
@ -263,7 +263,7 @@ filled_set | other_set #=> {1, 2, 3, 4, 5, 6}
|
|||||||
some_var = 5
|
some_var = 5
|
||||||
|
|
||||||
# Here is an if statement. Indentation is significant in python!
|
# Here is an if statement. Indentation is significant in python!
|
||||||
# prints "some var is smaller than 10"
|
# prints "some_var is smaller than 10"
|
||||||
if some_var > 10:
|
if some_var > 10:
|
||||||
print "some_var is totally bigger than 10."
|
print "some_var is totally bigger than 10."
|
||||||
elif some_var < 10: # This elif clause is optional.
|
elif some_var < 10: # This elif clause is optional.
|
||||||
|
Loading…
Reference in New Issue
Block a user