Enter a random number between 1 and 10. If you guess the lucky number, you win a prize!
The above app demonstrates how a computer program has to handle user input.
What happens if you enter your name into the input box? Does the program crash? Or can it handle this awkward situation?
The program utilises exception (error) handling.
Open your IDE and follow the video to explore this concept in Python.
Open your IDE and create a new file. Save it in your Python folder.
Copy the starter code into your IDE.
Complete the Worksheet as you follow the video.
The challenge is intended to activate your problem solving brain and attempt to use the strategies presented in the video.
You do not need to complete the challenge
But... you need to attempt to complete the challenge! This will help you to develop your coding skills.
Strategies for completing the Challenge successfully:
integratedsyntax development environment machine code translate type errorcompile