Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x


Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x


Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x


Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x


Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x


Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x



Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x


Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x


Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x



Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x



Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x



Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x



Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x


Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x

Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x


Call by Value

define main()
  x = 5
  y = addThree(x)
  print(x)
  print(y)

define addThree(x) x = x + 3 return x



Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5



Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5




Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5


Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5




Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5




Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5



Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5


Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5



Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5



Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5

Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5


Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5

Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5

Call by Reference

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x[1] = 5



Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}



Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}



Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}


Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}


Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}


Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}



Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}



Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}



Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}



Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}



Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}



Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}



Reassignment

define main()
  x = {1, 2}
  changeLast(x)
  print(x[0])
  print(x[1])

define changeLast(x) x = {3, 4}