Questions tagged as 'python-3.x'

1
answer

PyCharm condition error

I'm getting condition error in PyCharm. It was working normally minutes ago. I already closed the program, but it did not solve. valorProduto = float(input('Qual é o valor do produto de compra? R$ ')) modoPagamento = input('Deseja parcelar ou...
asked by 29.12.2018 / 00:50
1
answer

: Python3 Tkinter Requests: Temporary locking in get ('url') with the requests!

This is the following I created a script to 'decrypt' md5 hash, but when I enter Entry 21232f297a57a5a743894a0e4a801fc3 that is admin and is contained in wordlist, it hangs every time it reaches the b=get(f'url').content.decode(...
asked by 25.10.2018 / 15:18
1
answer

How to find the smallest value of a vector in python?

Can anyone help me with the logic of this function? This function should get an integer vector and return the smallest value within that vector. Ex: minimo([1,2,3,5,8,9,0,-2]) -> -2     
asked by 26.03.2018 / 01:32
1
answer

How can I change the value of the variables every time I repeat the function def?

My algorithm solves the following problem: Create an algorithm that reads 4 values typed and indicates if any pair of numbers adds 8 or a number greater than 8. s = [int(input()) for c in range(4)] while sum(s) < 8: print('Error 01...
asked by 14.12.2017 / 17:05
1
answer

How do I print information in the same place as the previous information?

I wanted to know a command in which I could update the screen and the new information would appear in the same place, just like a "loading" bar that when increasing does not create a copy at the bottom but updates in the same position.     
asked by 09.06.2018 / 20:31
2
answers

Call function list in python 3

I am creating a script for my python course. The script receives as input a sequence of integers terminated by zero and returns the numbers in ascending order, removing the repeated ones. The script worked from the first compilation, but n...
asked by 29.06.2018 / 18:30
1
answer

Error in def function

How can I calculate salary value with number of hours above 40 as defined in if, I try to run with 41 hours but give me this error salario = float(40*valor_hora+(h_excd*(1.5*valor_hora)))#valor salario com horas extras TypeError: can't multip...
asked by 20.06.2018 / 13:09
1
answer

Voice recognition in python [closed]

I would like suggestions for Python voice recognition libraries (when you speak and the computer writes), which are compatible with windows, easy to download and clear in Python 3     
asked by 01.12.2017 / 00:10
1
answer

Name Display on Diagonal (Top to Bottom)

I have to read a name and display it diagonally, ie from top to bottom. But I am not able to develop the correct logic, I have come to this: nome = input('Digite o seu nome: ') tamanho = len(nome) for nome in range(tamanho): print(nome...
asked by 17.12.2018 / 01:36
1
answer

Syntax error while reading CSV file

I'm trying, from a csv table, to remove certain information that is not useful to me, but in the code there is an error, according to python 3, but I can not figure out the error.    The error is on line 08, (file = open ('salicapiprojetos02.c...
asked by 06.04.2018 / 21:59