Exercise 1
Write a script that tests whether the user can follow instructions. It prompts the user to enter an 'x'. If the user enters anything other than an 'x', it prints an error message—otherwise, the script does nothing.
Requirements:
- Use the
input function to prompt the user
- Check if the input is exactly 'x'
- Display error message only for incorrect input
Example Behavior:
>> exercise1_script
Enter an x: 'x'
>> exercise1_script
Enter an x: 'y'
Error: You did not follow instructions!