Posts by Rennan Felipe • 47 points
7 posts
-
0
votes1
answer42
viewsQ: Variable sum does not take the value within the loop!
print ("Produto Numero 1") ValorDaMercadoria = float(input("Qual o valor da mercadoria? ")) print("Produto 1",":",ValorDaMercadoria) NumeroDoProduto = 2 ValorDaMercadoriaLaco = 1 while…
-
-1
votes1
answer121
viewsQ: wrong structure in my code! does not fall in any condition
I need to make a python script using WHILE and IF to find out if a typed number is prime or not. Below follows my code. I can not find where this my mistake, because if I type any value above 2 does…
-
-3
votes2
answers65
viewsQ: Syntax invalidates 2 degree equation
The error is in the last Else and I can’t identify, I know it’s a basic mistake. follows below the code: A = float(input("Qual o valor de A: ")) if A == 0: print("Sua equação não é do 2 grau") else:…
-
0
votes2
answers741
viewsA: How do I put the value of a variable in a statement of another variable?
I don’t know if I should answer my questions, but searching here I saw that just put a "+" after closing quotes and the name of the variable. type: PrecoProduto1 = float(input("Digite o preço do:" +…
-
1
votes2
answers741
viewsQ: How do I put the value of a variable in a statement of another variable?
NomeDoProduto1 = str(input("Qual o seu primeiro produto? ")) NomeDoProduto2 = str(input("Qual o seu segundo produto? ")) NomeDoProduto3 = str(input("Qual o seu terceiro produto? ")) PrecoProduto1 =…
-
2
votes2
answers78
viewsQ: Condition does not enter as entered
No matter what I type is falling on the first if, if I type m, M or even 10 will fall in the first if. I want that if the user type f or F appears feminine and the same goes for M or m. Letra =…
-
0
votes4
answers1240
viewsQ: I want to take only the first digit after the point of a number that in python 3.7.4
I want to take only the number after the dot, type in the number 3.76443 I want to print only the 7, how do I do? how will I also make to print it? I have to create a variable for it?