Posts by Adriano Brito • 85 points
2 posts
-
4
votes1
answer3476
viewsQ: How to put elements of a list in another list
I have the following code: a = list() b = list() c = list() a = (1,2,3) b = (2,4,6) c = a + b[1] print(c) How do I add an element from a list to another list?…
-
4
votes2
answers194
viewsQ: How do I exchange the 3 and 5 occurrences of a word in a string
Someone can help me in this, I need to change the 3 and 5 occurrence of a word in a text, I can change the other occurrences. Texto=input("Digite o Texto: ") #recebendo o texto do usuario…
python-3.xasked Adriano Brito 85