For the code given below:1. (1 pt) Write an expression to re…

For the code given below:1. (1 pt) Write an expression to replace XXXX on line 7 that reads a line of text from user? 2. (2 pts) Explain the functionality of the code. 3. (1 pt) At the exit from for loop, what does a value of true for variable YYYY mean?4. (1 pt) What would be a more appropriate name for variable YYYY?