If I type anything in the output for the name, it is accepting! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If I type anything in the output for the name, it is accepting!

In the output I had successfully got 'What is your name?' But for that if I type anything, its ending up with no issues! Anyone please help me with this.

3rd Oct 2016, 12:37 PM
Chaaru Manjuraj
Chaaru Manjuraj - avatar
2 Answers
+ 2
See the Try It Yourself from the Getting User Input lesson.
3rd Oct 2016, 1:08 PM
Zen
Zen - avatar
0
Yes it will as : STRING does not have any rules for it. What so ever u write it will just get on the outboard.
4th Oct 2016, 4:14 AM
Amit Mehra
Amit Mehra - avatar