Coding Task: 05.02 Are We Twins?

Are we twins? Let’s find out!

Your Task

In the editor below, fill in the blanks (________) so that the program asks the user for their age, and if it’s "14", print back Heya, twin! according to the flowchart below:

Python Reference Sheet

Remember to use the Python reference sheet to help you with your code! Click on one of the buttons below:

Requirements

  • The program should run without any errors.
  • The program should ask the user to enter an age and then display the text See ya later! onto the screen. If the user types "14" for their age, then the program should print Heya, twin! before it prints See ya later!.
  • Hint: Remember, indentation is crucial when dealing with if statements in Python! Everything “inside” the if statement has to line up, and don’t forget the colon (:) at the end of the if statement!

Example

Below is an example of how the program should run:

Hi there!
How old are you? 13
See ya later!
Hi there!
How old are you? 14
Heya twin!
See ya later!
Scroll to Top