tupla = (["a"], [1]) # Modificando a tupla indiretamente:tupla[0].append("b")tupla[1].append(2) print(tupla)
Standard input is empty
(['a', 'b'], [1, 2])
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!