Most voted "string" questions
A string is a sequence of zero or more characters. It is commonly used to represent text or a sequence of bytes. When marking a question with this tag, also mark with the programming language to be used and the operation being attempted with the string.
Learn more…1,904 questions
Sort by count of
-
-5
votes1
answer859
viewsHelp with error - comparisons against strings
Hello, Good night! I am on a platform of studies in which exercises and tests are performed, the statement is: Sets the function today Magazine, which receives by parameter a string that informs the…
-
-5
votes3
answers360
viewsI can’t find the code error
Could someone point out to me the error of this code: valor_hora = float(input('Valor da hora trabalhada: ')) qtd_horas_trabalhadas = int(input('Quantidade de horas trabalahadas: ')) salario_bruto =…
-
-5
votes3
answers248
viewsRegex - take only the first occurrence of a word in Python?
In a string, there are several occurrences of a word, but I want to take only the first occurrence of this, how to do? Below comes 'first' twice, but I wish only the first. re.findall(r'primeiro','…
-
-6
votes2
answers1061
viewsConvert dd-mm-yy date to yyyy-mm-dd in Java
I am receiving via form: 28-set-2018 and I need to save in the bank 2019-09-29 00:00:00