Posts by Kaique Nakao • 275 points
7 posts
-
-2
votes1
answer30
viewsA: Get information inside a dictionary
To display the information inside a dictionary I did as follows for usuario, usuario_info in usuarios.items(): print("\nUsuário: " + usuario) nome_completo = usuario_info['nome'] + " " +…
pythonanswered Kaique Nakao 275 -
1
votes2
answers70
viewsA: Python - Checking items in a list
A solution to print the unique data that is both in the list A and in the list B I used the set which is a collection of items where you cannot have duplicate values Follows the code: dns_svc =…
-
1
votes2
answers58
viewsA: Doubt about database
Double quotes are standard ANSI delimiters for identifiers, when you run the instruction select * from "aluno", will return the same data as an instruction select * from aluno. Double quotation…
databaseanswered Kaique Nakao 275 -
2
votes1
answer55
viewsA: Factorization algorithm in C
The negative value that is returning from the factorial is because the variables are being declared as type "long int" which has an interval of (-2.147.483.648 to 2.147.483.647), in which case to…
-
0
votes1
answer61
viewsA: The `Else` operator does not process an incorrect user input
There is an error in Else due to a syntax error in your if: if MF == 'm' or 'M' or 'f' or 'F': print('Sexo válido!') else: print('Sexo inválido!') the correct would be: if MF == 'M' or MF == 'F':…
python-3.xanswered Kaique Nakao 275 -
0
votes1
answer58
viewsA: CALCULATE PERCENTAGE OF SELLERS
I used your code and added the items of the question that were missing and commented on some parts of the code for a good view Follows the code: Nomes = [] Matriculas = [] totalVendas = [] comissoes…
pythonanswered Kaique Nakao 275 -
-2
votes1
answer55
viewsA: Doubt about a question I’m trying to solve I have this following code in python:
To do it in a very efficient way I’ll use the function map() python in its code to get the list of tuples with the original name and temperature modified in Fahrenheit Then I’d stay that way:…
pythonanswered Kaique Nakao 275