Posts by Pedro Henrique • 125 points
4 posts
-
4
votes1
answer129
viewsQ: Doubt how to display the name of a dictionary key
It is possible to display the name of only one key of a dictionary? ex: notas_por_materias = { "Matematica" : 7, "Portugues" : 8, "Historia" : 10 } I can display a print showing the subject name and…
-
0
votes1
answer55
viewsQ: Best way to perform print command
I’ve been studying about Python for a short time and I’ve learned to display a print value in three ways: % '{}'.format(exemplo) f' {exemplo} ' There is one more way pythonic or each form is…
-
6
votes1
answer4099
viewsQ: Definition and use of @Property
Good afternoon, I’m starting to study object orientation and I’m not getting a very good understanding of what the function is and when to use @Property. But from what I understood up to the moment…
-
0
votes2
answers174
viewsQ: Problem with input of more than one integer with input
I’m having trouble capturing the input of more than one integer into one input. Ex: numero = int(input('Digite o primeiro número aqui: ')) numero_1 = int(input('Digite o segundo número aqui: '))…