dangr1


Joined 1 year ago
Homeworks submitted:
Homework comments:
1
0

About Me

No description provided.

Classes

MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming

Class status: Established
Role: Student
. 5% complete

Submitted Assignments

MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming: Lesson 1, HW 1

Asks for last name, then first name. Prints, "Your name is [first name] [last name]." Next, prints first name followed by last name on a new line. I am using Python 3.1.

# Problem Set 0
# Name: dangr1
# Collaborators: 0
# Time: 15 minutes
# Python 3.1

responselast = input('What is your last name? ')
responsefirst = input('What is your first name? ')

print ('Your name is',responsefirst,responselast+'.')
print (responsefirst+'\n'+responselast)

dangr1 1 year ago