“Python Check String Bajor Insensible” Código de respuesta

Python String Match Ignore Case

if firstStr.lower() == secStr.lower():
    print('Both Strings are same')
else:
    print('Strings are not same')
Xerothermic Xenomorph

Python Check String Bajor Insensible

string1 = 'Hello'
string2 = 'hello'

if string1.casefold() == string2.casefold():
    print("The strings are the same (case insensitive)")
else:
    print("The strings are NOT the same (case insensitive)")
DreamCoder

Python Check String Bajor Insensible

string1 = 'Hello'
string2 = 'hello'

if string1.lower() == string2.lower():
    print("The strings are the same (case insensitive)")
else:
    print("The strings are NOT the same (case insensitive)")
DreamCoder

Respuestas similares a “Python Check String Bajor Insensible”

Preguntas similares a “Python Check String Bajor Insensible”

Más respuestas relacionadas con “Python Check String Bajor Insensible” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código