Q: what do i write so it if the user inputs an x it stops Write a script that continuously accepts numeric inputs from the user.  It does not have to accept decimals.  When the user submits an "x" the program stops asking for user input.  Upon the user typing an "x", the script will tell the user how many numbers have been entered and the total sum of the values.

A: Use a while loop that appends each casted input to a list, then use sum() and len() to find the total sum and array length.
