Tyl Programming Language
▶ VARIABLE ASSIGNMENT - PART 3
Variables can be assigned a value from list operations:
nums 21 22 23
second_num nums 1
added_num nums 24
removed_num nums
print 'second_num: ' + second_num
print 'added_num: ' + added_num
print 'removed_num: ' + removed_num
second_num: 22
added_num: 24
removed_num: 21
second_num gets the second item of nums.
added_num gets the added num: 24.
removed_num gets the removed item from nums, which is the first item.

Likewise, list item can be set the value of operation on variables:
nums 21 22 23
num_a 30
num_b 40
nums 1 num_a + num_b
print nums
[21, 70, 23]
In line: 'nums 1 num_a + num_b', nums list second item is set the sum of num_a and num_b.


PART 2
PART 4