Posts by andgualberto • 27 points
4 posts
-
0
votes2
answers162
viewsQ: Join of lists in Python
How to join two lists in Python to form a single list ? For example, I have this list [[1, 0, 0, 0], [1, 1, 1, 0], [1, 0, 0, 0]] and I want to join her with [[1, 0, 1, 0], [1, 0, 1, 1]]. I want the…
-
0
votes0
answers27
viewsQ: Place Objective Functions on the same scale(0,1)?
I have this code for the generation of fitness function, but I need the values resulting from F1, F2 and F3 functions to be calculated in such a way that their values are always on the same scale as…
pythonasked andgualberto 27 -
1
votes1
answer246
viewsQ: Generate random numbers with fixed total python result
I need to generate three random numbers and the sum of those has to be 1.0. follows the idea more or less, I believe that the way I’m doing would take too long to reach a.. import random total = 1.0…
pythonasked andgualberto 27 -
-1
votes1
answer70
viewsQ: Can I create a list inside a python object?
have a question can I declare a list inside a Python object? If yes, I would do that, and how I would manipulate (add, print..) someone has some example or reference where they can study this? guy..…
pythonasked andgualberto 27