Check sibling questions

Write a program that asks two people for their names; stores the names in variables called name1 and name2; says hello to both of them.

 

Answer:

Code:

name1 = input("Enter name 1: ") 

name2 = input("Enter name 2: ") 

print("Hello", name1) 

print ("Hello", name2)

 

Code - Teachoo.jpg

Learn in your speed, with individual attention - Teachoo Maths 1-on-1 Class

Ask a doubt
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 13 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.