Customize your Morse code messages in real time when you program one of your Code Rocket’s buttons to ‘beep’ the speaker when pressed!
New Concept: Inputs to your code!
Most programs you use daily require some kind of input from you - a password for an account, or maybe a ‘time to cook’ on the microwave. Now you’re integrating inputs into your program and giving your code ‘choices’ about what to do based on the input it receives.
Quiz
If you're having trouble, try to run an experimental program or look at the example code to help you find the answer.1. The two main parts of an 'if' statement, according to the code walkthrough video, are:
2. Can you have an 'if' statement without an 'else' statement?
3. Can you have an 'else' statement without an 'if' statement?