num = []
soma = 0
media = 0
for i in range(1, 16):
num = int(input('Digite um número: '))
soma += num
media = soma / 15
if num[i] > media:
print('Maires que a media {}'.format(num[i]))
if num[i] < media:...
I'm programming a headless threaded list, in this program there is a remove function that aims to delete all repeated integers in a list, px: by taking the values 8 2 8 3 8 the function has to return 2 3, however this function apparently looped...
Hello
I would like to know how I can change the color of the marker ball <li> via CSS.
For what I read on the internet, so far I've only been able to do this using an image to replace the ball.
My Winforms C # project has a form with a GridControl(gvDados) component and a Process button with a Click event . The validation happens in the Click event of the process button, through a method responsible for returning true if...
Why is it incorrect to remove an object from a collection in this way? And why the release of the ConcurrentModificationException exception?
for(String item: list) {
list.remove(item);
}
There is some code that adds the elements of two lists, for example:
A=[1,2,3,4]
B=[2,4,5,6]
D=[3,6,8,10] # o elemento 3 e a soma dos elementos 1 e 2 da lista A e B
To remove all items from a list, I can do it in two ways: lista.clear() and lista = new ArrayList<T>() .
What are the differences between them?
In which situations should I use each?
How can I store values and variables of all types within a vector? Ex:
vetor1.Add("valor em string");
vetor1.Add(100);
vetor1.Add(100.10);
vetor1.Add(-100);
I have no idea how I can do this.
I have a text where I am handling various things. Now I need to get the 3 words that repeat the most in the entire text.
How can I do this? What is the best solution?
I thought about storing in a list but I do not know how to put the word and...
We know that objects of type list , because they are based on dynamic vectors, have a maximum internal capacity. We also know that when full capacity is reached and we want to insert a new value into the list, Python allocates a new array...