Posts by J.Marcos • 23 points
2 posts
-
0
votes0
answers249
viewsQ: Python matrix sum 2x2
m = [] for l in range(0, 2): m.append([]) for c in range (0, 2): valores = int(input("Digite valores: ")) m[l].append(valores) print("-"*30) print(m) print("-"*30) for l in range(0, 2): print("|",…
-
2
votes4
answers2332
viewsQ: Print String vertically in Python
It’s a string-only exercise, I haven’t gotten to the list part yet What my mistake ? print("-"*30) nome = str(input("Digite seu nome: ")) cont = '0' while cont < nome: c = int(cont)…