def double_last_value(L):
'''(list of int) -> NoneType
Double the value at L[-1]. For example, if L[-1] is 3,
replace it with 6.
Precondition: len(L) >= 1.
'''
L1 = [1, 3, 5]
double_last_value(L1)
print(L1[-1])
ZGVmIGRvdWJsZV9sYXN0X3ZhbHVlKEwpOgogICAgJycnKGxpc3Qgb2YgaW50KSAtPiBOb25lVHlwZQoKICAgIERvdWJsZSB0aGUgdmFsdWUgYXQgTFstMV0uICBGb3IgZXhhbXBsZSwgaWYgTFstMV0gaXMgMywKICAgIHJlcGxhY2UgaXQgd2l0aCA2LgoKICAgIFByZWNvbmRpdGlvbjogbGVuKEwpID49IDEuCiAgICAnJycKTDEgPSBbMSwgMywgNV0KZG91YmxlX2xhc3RfdmFsdWUoTDEpCnByaW50KEwxWy0xXSk=