Hello, world!

Report a typo

The classical introductory exercise, slightly modified. Write a program that takes a string, writes it to the variable name (this part of code is already written for you), and then prints "Hello, world! Hello, name". Note that there's a space before the name. Keep in mind that the tests for this task are case sensitive, so make sure to preserve all the capital letters.

Note that the variable name is already defined.

Tip: Invoke the print() function with two arguments – the output string and the name variable. Don't forget that print() separates each pair of arguments with whitespace.

Sample Input 1:

John

Sample Output 1:

Hello, world! Hello, John
Write a program in Python 3
name = input()
___

Create a free account to access the full topic