User: dan@sartography.com clicked save for examples/1-basic-concepts/understanding-data-part-1/python.bpmn
This commit is contained in:
parent
61c6f29a76
commit
bf106a60cb
|
@ -8,12 +8,24 @@
|
|||
<bpmn:scriptTask id="Activity_10fbwgl" name="Simple Script Task">
|
||||
<bpmn:incoming>Flow_0bngcu2</bpmn:incoming>
|
||||
<bpmn:script>
|
||||
# Variables
|
||||
age = 54 # This is an integer
|
||||
# Creating Variables
|
||||
age = 51 # This is an integer
|
||||
height = 1.93 # This is a float or "floating point number"
|
||||
children = ['Robert', 'Edward', 'Tad', 'Willie'] # This is a list
|
||||
is_married = True # This is a boolean
|
||||
|
||||
# Updating Variables
|
||||
Age = 50 # Variables are case sensitive, this is a new variable.
|
||||
age = 54 # This updates the age variable.
|
||||
|
||||
# Referencing variables
|
||||
my_age = age # my_age is now set to 54
|
||||
|
||||
# Deleting variables
|
||||
del(Age) # The age variable no longer exists. You will get an error if you try to use it.
|
||||
|
||||
|
||||
|
||||
# This is a dictionary, and you will use a lot of them...
|
||||
cabinet = {
|
||||
"Secretary of State": "William H. Seward",
|
||||
|
|
Loading…
Reference in New Issue