<filename>Labs/2/E27.py
'''
Description: Exercise 27 (2D list and dictionary)
Version: 1.0.0.20210118
Author: <NAME>
Date: 2021-01-18 16:19:30
Last Editors: <NAME>
LastEditTime: 2021-01-18 16:32:46
'''

num_list = [
    [2, 5, 8],
    [3, 7, 4],
    [1, 6, 9],
    [4, 2, 0]]
row = int(input('Select a row (start from 0): '))

print(num_list[row])

num_list[row].append(int(input('Enter a new value: ')))

print(num_list[row])
<filename>Labs/2/E27.py
'''
Description: Exercise 27 (2D list and dictionary)
Version: 1.0.0.20210118
Author: <NAME>
Date: 2021-01-18 16:19:30
Last Editors: <NAME>
LastEditTime: 2021-01-18 16:32:46
'''

num_list = [
    [2, 5, 8],
    [3, 7, 4],
    [1, 6, 9],
    [4, 2, 0]]
row = int(input('Select a row (start from 0): '))

print(num_list[row])

num_list[row].append(int(input('Enter a new value: ')))

print(num_list[row])
Description: Exercise 27 (2D list and dictionary) Version: 1.0.0.20210118 Author: <NAME> Date: 2021-01-18 16:19:30 Last Editors: <NAME> LastEditTime: 2021-01-18 16:32:46