Posts by Jp3108 • 23 points
3 posts
-
0
votes0
answers51
viewsQ: How to use pyplot broken_barh using dates? Because I want to plot a Gantt chart
import matplotlib.pyplot as plt from math import floor def tamanho(lista): return floor(len(lista)/2) rangex = [[(0,1.5)], [(1.5,3)], [(3,3)]] rangey = [(n, -.5) for n in…
-
1
votes2
answers80
viewsQ: How do I use the for command to solve the same problem?
In this case, the objective of the program was to make a half pyramid, as many floors as the user wanted to build, however, he wanted to use the 'for' command to accomplish this goal. quant =…
-
-2
votes1
answer43
viewsQ: In this program, I wanted it to include in the final list the even numbers of the first list and the odd numbers of the second, why doesn’t this happen?(python)
*In the final list, numbers appear that were not supposed to be there, for example 103, which is an odd number from the first list. lista_1 = [10,24,50,103,30,12] lista_2 = [13, 16, 39, 14, 107, 35]…