+ 1
SoloLearn looks for certain keywords in the code and decides whether to prompt for input or not. For example, in Python codes, it looks for 'input()'. If it finds it, it prompts the user asking for input, else it runs the code without any input. In the case of ruby, the trigger is 'gets' (could be some more, I don't know). If SoloLearn finds that 'gets' has been used in the code, then only it will ask for input. So I guess... stick to 'gets'
3rd May 2021, 3:21 AM
XXX
XXX - avatar