Posts by Matheus Delazeri • 214 points
10 posts
- 
		0 votes1 answer55 viewsA: Good afternoon, I needed help with a c++ calculatorThe problem is occurring because soon after entering the conditions of your switch case you’re giving a break: ... switch(op){ case 'a': case 'A': >>> break; ... The function of break is… c++answered Matheus Delazeri 214
- 
		0 votes1 answer33 viewsA: Group By without merging python data labelsYou can "reset" the index by making use of the function reset_index() so that all values are displayed: ... df_2 = df.groupby(['codes',… 
- 
		1 votes1 answer43 viewsA: implode(): Invalid Arguments passedThere are 2 problems going on in the code. The first is that the function md5() expects to have a string as parameter and in the code you are passing an array to it ($fotos['name']): $string =… 
- 
		0 votes1 answer37 viewsA: Syntaxerror: invalid syntax data.append)=(R)On the line: ... R = math.log(df.loc[idx,coluna] / (df.loc[idx-1,coluna]) ... There’s a ( which was not closed shortly after the /. And this is causing the error of Invalid Syntax. Just remove these… python-3.xanswered Matheus Delazeri 214
- 
		1 votes1 answer31 viewsA: the code is not formattedOne way to skip lines is by using the tag <br> at the end of sentences. Example: ... document.body.innerHTML += `Seu nome tem <strong>${nome.length}</strong>letras<br>`; ...… 
- 
		1 votes2 answers76 viewsA: Even Number Counting (c language)The problem is you’re not comparing whether the val1 is even or not within the loop for, you are "closing" the loop before that: for (val1; val1 <= val2; val1++) { printf("\n%d ", val1);… 
- 
		-3 votes2 answers50 viewsA: In if, when the user puts another state that is not specified, instead of entering Else, he enters if and continues the code normallyHello, the problem is happening in the condition of if. It is necessary that you add est == before all possibilities: if est == 'São Paulo' or est == 'SP' or est == 'sao paulo' or est == 'São… 
- 
		-1 votes2 answers65 viewsA: Delete a variable the program receives in input.split(" ") in PythonOne way to solve the problem would be to take the whole value of the input, divide it into variables (using the split(" ")) and store variables in a list: list_input = input().split(" ") Once done,… pythonanswered Matheus Delazeri 214
- 
		1 votes2 answers68 viewsA: Scanf does not work even forcing to ignore the spacesThe problem is occurring because the function scanf reads the input until you find a space. So, when typing two separate words, it’s like you’re giving the program 2 values. For you to be able to… 
- 
		0 votes2 answers814 viewsA: Validate CPF - C languageHey, how you doing? So the program was displaying letters in the check digits because the multiplications were being done with characters instead of integers. A "simple" solution to this is to…