Assignment 2.2:


2.2 Write a program that uses input to prompt a user for their name and then welcomes them. Note that input will pop up a dialog box. Enter Sarah in the pop-up box when you are prompted so your output will match the desired output.


Answer:


# The code below almost works

name = input("Enter your name")


print("Hello"+" "+name)


input:


Sarah


output:


Hello Sarah


Here is the link:


https://www.py4e.com/tools/pythonauto/?PHPSESSID=b59178881b02435bc1b57d8bd385ca95

Comments

Popular posts from this blog