'Sample Output: Input your first name: James Input your last name: Smith Hello James Smith'
Added by Celia I.
Step 1
Ask the user to input their first name. Show more…
Show all steps
Your feedback will help us improve your experience
Maryam Riaz and 78 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a program that asks the user to input their first and last names. The first prompt should state: Please input your first name: The second prompt should state: Please input your last name: After accepting the inputs, your program should output the input in the form last name, first name. Hint: Remember that you can concatenate (add) two phrases by using the + symbol. Don't forget that you'll need to add a comma as well and that the comma must be followed by a space.
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD