Skip to content

Practical exercise

Make a computer say your name

Every programmer alive once wrote their first line of code. Today is yours. By the end of this exercise the computer will speak your name back to you, and you will have your first screenshot proving you are someone who writes code.

25 min·practitioner
Mimi the mascot, encouraging you

Now try it

Make a computer say your name

Stretch

Add a third line: name = input('Aap ka naam kya hai '). And a fourth line: print('Salam ' + name). Run. Type a friend's name when asked. Now your program greets anyone. Save Replit URL in portfolio.

Goes into your portfolio

A screenshot showing your two line Python program and the console output saying Salam plus your name, plus the public Replit URL.