Posts by FaxSender • 1 point
1 post
-
-3
votes1
answer33
viewsQ: How to concatenate two types of different values but of the same input into a list in python?
I have the following code that reads a person’s name and age: pessoas = [] p = [str(input('Digite o nome e a idade da pessoa no formato: "Nome 23": '))] pessoas.append(p) print(pessoas) Supposing I…