Posts by bruno boff • 23 points
3 posts
-
1
votes1
answer61
viewsQ: return a list of numbers that are in sequence
I’m trying to make some list go through and make another one come back with the numbers that are in sequence. My list is returning empty. Ex: lista=[1,2,3,5,9,10] returns nova_lista=[1,2,3,9,10]…
-
0
votes2
answers57
viewsQ: Problem with list creation
I’m trying to create a function that has as input a list. The function calculates the number of characters of each component of the list and returns another list of numbers. After that would have to…
-
1
votes0
answers59
viewsQ: Problem with the python Random function
Hello I have a typeErro problem. but I don’t know what can be, I’m beginner in python import random def ataque(bonus, defesa, dano, bonus_dano): dano_total = [(random.randint(1, dano)+bonus_dano)…
python-3.xasked bruno boff 23