Coding Task: 01.04 A Spoken Conversation in Python!

Now that we’ve fixed our first program in Python, let’s write a program that has a conversation with itself!

Your Task

In the editor below, edit the code so that the program says the following lines, using 2 different voices, 1 for each speaker:

  • Speaker 1: Hello, <your_name>, how are you?
  • Speaker 2: I am great! What did you do over the weekend?
  • Speaker 1: I watched <your favourite show>! What did you do?
  • Speaker 2: I played some footy, and my team won!

Requirements

  • The program should run without any errors.
  • The program should say the all text above on the screen.
  • Hint: You’ll need to use multiple say() functions, one on each new line. Remember to use different voices by typing in different numbers in the 2nd argument.

Example

Below is an example of how the program should run if your name was Alice, and your favourite TV show was Friends
(Press [Enter] to start the example)

Scroll to Top
Scroll to Top