0

Need help first step??

Create a program that asks 'what is your name 'then says hello and repeats the user s name with exclamation. Ex. If the input is 'Harriet' The output will be 'Hello Harriet!'

3rd May 2021, 10:31 AM
AhMaD Ali
AhMaD Ali - avatar
10 odpowiedzi
+ 3
print("Hello",input("What is your name?")+"!") Or print(f"Hello {input('What is your name?')}!") # Hope this helps
4th May 2021, 8:15 PM
Calvin Thomas
Calvin Thomas - avatar
+ 2
Maybe its better you would start with “Python for beginners”
3rd May 2021, 10:34 AM
Angela
Angela - avatar
+ 2
Hey AhMaD Ali Just study one more time !
3rd May 2021, 10:38 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
+ 1
Thirt13n thx bro I try it but still learnibg
3rd May 2021, 10:40 AM
AhMaD Ali
AhMaD Ali - avatar
3rd May 2021, 10:34 AM
AhMaD Ali
AhMaD Ali - avatar
0
name = input("Enter your name: ") print("Hello, " + name)
3rd May 2021, 10:47 AM
Angela
Angela - avatar
0
Angela he say failed??
3rd May 2021, 10:58 AM
AhMaD Ali
AhMaD Ali - avatar
0
name = input ("Your name: ") print ("Hello",name,"!")
3rd May 2021, 1:08 PM
Katdotbrush
Katdotbrush - avatar