I want to solve following question
Write a function that will prompt the user for a string of at least one character, loop to error-check to make sure that the string has at least one character, and return the string?
I has written the follwing code
outstring=input('Enter the string: ','s');
outstring=input('Invalid! Enter string only: ','s');
But the above scipt is not working.Please correct my code.