Posts by Pedro Henrique Santos • 19 points
3 posts
-
1
votes1
answer301
viewsQ: Automatic condition for a variable.
I created a character for a game using a class and within that class I placed the attribute life = 10. During the course of this character, he receives some damage from enemy damage attacks which I…
pythonasked Pedro Henrique Santos 19 -
0
votes2
answers36
viewsQ: Separating using + signal while reading user data
Excuse me for the basic question. I just don’t understand when we have to use the + in the Input. Follow the example of a command below. Why does my code not work when I put the str(i) between…
pythonasked Pedro Henrique Santos 19 -
0
votes1
answer6285
viewsQ: Python prime numbers | while
I have the following problem: Write the maior_prime function that takes an integer number greater than or equal to 2 as parameter and returns the largest prime number less than or equal to the…
pythonasked Pedro Henrique Santos 19