Posts by Lucas • 9 points
2 posts
-
0
votes0
answers16
viewsQ: Replacing data in lists
def substituir(lista,velho,novo): lista = [1,2,3,3,5] resultado = substituir(lista[velho],novo) return resultado The problem is that I can’t replace an old list item with a new one. For example if I…
-
-2
votes2
answers113
viewsQ: How to use alphabet range in python?
I am trying to make a program that makes the letters of the alphabet in triangle type so the user enters with an integer number and the result is displayed in triangle form. 7: A BB CCC DDDD EEEEE…