← VCE Applied Computing U1O2 Programming: Validating data

VCE Applied Computing U1O2 Programming: Validating data Hangman

Year 11 · VCE · 7 key terms.

Theme
Words

Every word, shuffled.

Players

Students check data on entry with existence, type and range checks, using error handling, loops and reusable validation functions. See the whole journey →

Want your own words? Free Hangman Generator →

Same journey, on the board

Two answers, the class points left or right and you reveal why. The journey’s own questions, no devices.

▶ Run Duo on the board

Same words, on paper

The quiet activity after the loud one. Free to print, answer keys included.

Add your class once in the Random Name Picker Wheel — it works here and in the Random Team Generator.

When your class is on devices

Sprint: a fast whole-class game on any module, where every student plays at their own level. Same modules, with a free class.

The 7 key terms

1validation
An automatic check that data is reasonable and in the right form when entered. It blocks bad data early, but it cannot prove the data is true (a valid age of 15 could still be wrong).
2if name != ""
An existence check tests that the user actually entered something, so the input is not an empty string. len(name) > 0 does the same job. Loop and re-ask until it passes.
3error handling - try/except basics
Block containing code that might cause an error.
4isdigit()
A type check method: returns True if a string holds only digits, so text can be rejected where a number is needed. The alternative is to put int(value) inside try/except.
5if 0 <= mark <= 100:
A range check tests that a number lies between a minimum and maximum. This chained comparison is True only when mark is from 0 to 100 inclusive, so the boundary values 0 and 100 are accepted.
6while not valid:
A loop that keeps asking for input again until the answer is valid, so bad data (like an age of -5) can't get into your program. Show an error message each time.
7def get_valid_age():
A function that runs existence, type and range checks in order, then returns a valid age (or True/False) so you can reuse the same checks for every input.

Frequently Asked Questions

Do I need an account?

No. Hangman runs straight from this page — no account, nothing to install. If you add your class names, they are saved in your own browser and sent to Cloodit only if you choose to save the class.

How do I play it with my class?

Put the page on your whiteboard or projector and press Play. The class calls out letters and you click or type them. Six wrong letters and the word gets away. After every word its definition appears, so each round ends on the meaning, not just the spelling.

Can I use my own words?

Yes. The free Hangman generator at cloodit.com/hangman/ takes any list: one word or phrase per line, with a definition after a dash if you want it shown at the end of the round.

Can I put my students' names in?

Yes. Add your class once, here, on a Hangman topic page or in the Random Name Picker Wheel, and a random student is called for each word. The class stays in this browser on this computer, so it is still there next lesson.

Are the worksheets free too?

Yes. Every module in this journey has a free printable worksheet with a full answer key, and there are crosswords and word searches built from the same key terms.

More VCE Hangman

VCE Applied Computing - U2O1 - Innovative Solutions24 key terms VCE Applied Computing - U2O2 - Cyber Security74 key terms VCE Pseudo Code25 key terms VCE Applied Computing - U1O1 - Data analysis78 key terms VCE Applied Computing - U1O1 - Data analysis82 key terms VCE Software Development - U3O1 - Programming181 key terms Make your own hangman →Paste any word list and play