Posts by Joao Victor • 7 points
4 posts
-
0
votes1
answer52
viewsQ: Error in program something related to the lines
energia <- data.frame("curso" = 1:15,"enem"=1:5) energia$curso <- c("Eng Aeroespacial", "Eng Ambiental", "Eng de Controle e Automação", "Eng de Minas", "Eng de Produção", "Eng de…
-
-4
votes1
answer89
viewsQ: progamma error
def trianguloPascal(n): lista = [[1],[1,1]] for i in range(1,n): linha = [1] for j in range(0,len(lista[i])-1): linha += [ lista[i][j] + lista[i][j+1] ] linha +=…
-
0
votes1
answer33
viewsQ: Add the value 5 at the end of the list/tuple
lista_da_tupla_a=(["0", "33", "40"], ["8", "30","9"], ["7", "0", "0"]) lista_da_tupla_a = list lista_da_tupla_a[2] = "5" print(lista_da_tupla_a) Desired exit: (["0", "33","5"], ["8","30",5],…
-
-2
votes1
answer4270
viewsQ: Randomly draw letters
I can generate numbers, but letters how do I generate type AB BC AEEE, for example. import random import string for j in range(40,100): print(random.choice(string.ascii_uppercase)) In this code I…
pythonasked Joao Victor 7