How to spot mistakes when comparing two strings | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

How to spot mistakes when comparing two strings

Here's the thing. I'm trying to make a code that compares two string variables by using the methog Equal, no sweat so far. However, I'd like to make it so that if there is a mistake in the input, the console would show you by changing in red what is wrong. For instance, I have to type "Hello" but my input is "hallo". I'd like the console to display h and a in red. Does anybody have a suggestion ? https://code.sololearn.com/cg4vclOsIlkr/?ref=app

29th Dec 2017, 10:01 AM
Tho5mas
1 Respuesta
+ 1
Thanks. I'll try to follow that and post a new version of my code... maybe soon after the birth of 2018. 🎉
29th Dec 2017, 12:16 PM
Tho5mas