Challenge 1

🗺️

Hello World

Open in Code Editor or Copy Instructions
...solutions at bottom of page...

Create a program to ask for a user's name, then output a greeting to them

Examples:

If they input their name as Fred, then the program should output Hello Fred!

Extension:

Add code to keep asking the user to try again, if they don't enter a valid name (e.g. no characters). You could add additional validation rules yourself if you'd like - for example, perhaps the name has to only contain characters in the set A-Z

Solutions

IGCSE 0478 / O-Level 2210 A-Level 9618