Stop learning alone!

Learn faster and stay on-track by joining this free class with other self-learners.

Register for MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming now.

MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming

Class length: 24 weeks. Start anytime.

Creator: duallain

Status: Established

Join this class!

Lesson 1: Assignment 1

Homework Submissions

214 total

zz2003 (Self-grade: Outstanding)
Submitted 3 weeks ago | Permalink | Time spent: 3 minutes
first_name = raw_input("Enter your first name:")
last_name = raw_input("Enter your last name:")
print first_name, last_name
spradlig (Self-grade: Outstanding)
Submitted 3 months ago | Permalink | Time spent: 1 hour

Not sure what I'm supposed to write here. My script prompts me for my last and first names, takes them, and spits them back out. I put in a ten-second time delay at the end so it wouldn't disappear immediately.

#Problem Set 0
#Name: Greg Spradlin
#Collaborators: None
#Time: 1 hour
import time
ln=raw_input('Enter Your Last Name.')
fn=raw_input('Enter Your First Name.')
print fn 
print ln
time.sleep(10)
wwjd1004 (Self-grade: Outstanding)
Submitted 5 months ago | Permalink | Time spent: 4 minutes
Last_Name = raw_input("What is your last name?")## Asking User for their last name
First_Name = raw_input("What is your first name?")##Asking User for their first name
print "Your last name is " + Last_Name ## Displays the value entered for last name
print "Your first name is " + First_Name## Displays the value entered for first name
milenanena (Self-grade: Outstanding)
Submitted 6 months ago | Permalink | Time spent: 2 minutes

Problem Set 0

Name: Milena Mihajlovic

x= input ('Enter your first name')
y= input ('Enter your last name')

print x, y
eche37 (Self-grade: Could be better)
Submitted 6 months ago | Permalink | Time spent: 30 minutes
last_name = raw_input("Enter your last name: ")
first_name = raw_input("Enter your first name: ")
print first_name + " " + last_name
Phoenix (Self-grade: Outstanding)
Submitted 6 months ago | Permalink | Time spent: 10 minutes
# Problem Set 0
 # Name: Shalini
 # Collaborators: John Doe
 # Time~ 10 minutes
print "Enter your last name:"
lname=raw_input()

print "Enter your first name:"
fname=raw_input()

print fname
print lname
dewmazz (Self-grade: Outstanding)
Submitted 8 months ago | Permalink | Time spent: 18 minutes
# Problem Set 0
# Name: dewmazz
# Time: ~20 minutes

print ("Please enter your last name: ")
lastn = raw_input()

print ("Please enter your first name: ")
firstn = raw_input()

print

print ("Hello, " + firstn + " " + lastn)
gaffen (Self-grade: Outstanding)
Submitted 11 months ago | Permalink | Time spent: 1 minute
  1. Prompts user for DOB
  2. Prompts user for last name
  3. Prints last name, followed by a space and DOB
# Problem Set 0 
# Name: Matthew Gaffen
# Collaborators: none 
# Time Spent: 0:20
date = raw_input("Enter your date of birth:\n")
name = raw_input("Enter your last name:\n")
print name + ' ' + date
tridianprime (Self-grade: Outstanding)
Submitted 11 months ago | Permalink | Time spent: 3 minutes
surname = raw_input('What is your surname? ')
firstname = raw_input('What is your first name? ')
print(firstname + ' ' + surname)
ammdidi (Self-grade: Outstanding)
Submitted 11 months ago | Permalink | Time spent: 2 minutes
# Problem Set 0
# Name: Ammdidi
# Time: 2 minutes

last = raw_input("Please enter your last name")
first = raw_input("Please enter your first name")

print first + " " + last
ptomulto (Self-grade: Could be better)
Submitted 1 year ago | Permalink | Time spent: 30 minutes
Problem Set 0
Name: ptomulto
Collaborators:N/A
Time: 30 mins



LastName = raw_input("Enter your last name :")
FirstName = raw_input("Enter your first name:")

Print("Your name is" firstName + " " + lastName)
Levi (Self-grade: Could be better)
Submitted 1 year ago | Permalink | Time spent: 10 minutes

start python 's journey !

lastname = raw_input('What is your last name :')
firstname = raw_input('What is your first name :')
print firstname + lastname 

Comments:

Levi
1 year ago

lastname = raw_input('What is your last name :') firstname = raw_input('What is your first name :') print firstname + lastname

lastname = raw_input('What is your last name :')
firstname = raw_input('What is your first name :')
print firstname + lastname 

Sign up or log in to comment

kssmanian (Self-grade: Pretty good)
Submitted 1 year ago | Permalink | Time spent: 3 minutes
# Problem Set 0
# Name: KssManian
# Collaborators: None
# Time: 2 minutes
#
lastname=input(What is your last name : ")
firstname=input("What is your first name : ")
print 'Your First Name is' + ' '+firstname + 'and Last Name is' + ' ' +lastname
RyanChenLee (Self-grade: Outstanding)
Submitted 1 year ago | Permalink | Time spent: 2 minutes
lastname = raw_input("Enter Last Name")
firstname = raw_input("Enter First Name")
print firstname + " " + lastname
ottoshih (Self-grade: Pretty good)
Submitted 1 year ago | Permalink | Time spent: 5 minutes

Asks for last name, asks for first name, prints out first followed by last name.

#problem set 0
#name = Otto Shih
#time spent: 0:30
lastname=raw_input("What is your last name?: ")
firstname=raw_input("What is your first name?: ")
print firstname, lastname 
mburakergenc (Self-grade: Pretty good)
Submitted 1 year ago | Permalink | Time spent: 6 minutes

Problem Set 0

Name: Mburakergenc

date = int(raw_input('Enter an integer: '))
last_name=raw_input("Enter your last name: ")

print date, last_name
cranduit (Self-grade: Outstanding)
Submitted 1 year ago | Permalink | Time spent: 1 minute
# Problem Set 0
# Name: cranduit

last_name = raw_input("Enter your last name:")
first_name = raw_input("Enter your first name:")
print first_name, last_name
smiller148 (Self-grade: Outstanding)
Submitted 1 year ago | Permalink | Time spent: 1 minute
# Problem Set 0
# smiller148

reply_last = raw_input("Enter your last name:")
reply_first = raw_input("Enter your first name:")
print reply_first, reply_last
astragen (Self-grade: Pretty good)
Submitted 1 year ago | Permalink | Time spent: 5 minutes
# Problem Set 0
# Name: Astragen
# Time: 5:30
print ("Input first Name\n")
a=input()
print ("Input Last Name\n")
b=input()
print ("Full Name", a + " " + b)
Cintre (Self-grade: Pretty good)
Submitted 1 year ago | Permalink | Time spent: 3 minutes

Ask the user to input his last name and first name and print them in order

# Problem Set 0
# Name: Cintre
#

first_name=raw_input("Enter your first name: ")
last_name=raw_input("Enter your last name: ")

print first_name,last_name
aug2uag (Self-grade: Could be better)
Submitted 1 year ago | Permalink | Time spent: 5 minutes
# Problem Set 0
# Name: aug2uag
# Collaborators: -
# Time: 0:05 #

print 'enter your name'
x= raw_input('type your first name: ')
y=raw_input('type your last name: ')
print x,y
vivekB (Self-grade: Outstanding)
Submitted 1 year ago | Permalink | Time spent: 2 minutes
# Problem Set 0
# Name: Vivek 
# Time: 0:02
#
import sys

lastName = raw_input('Enter your last name: \n**')
firstName = raw_input('Enter your first name: \n**')
sys.stdout.write(firstName+'\n'+lastName)
Gaan (Self-grade: Outstanding)
Submitted 1 year ago | Permalink | Time spent: 10 minutes
lastName = raw_input("Enter your last name \n**")
firstName = raw_input("Enter your first name \n**")

Print("Your name is" firstName + " " + lastName)
anubhavnidhi1009 (Self-grade: Could be better)
Submitted 2 years ago | Permalink | Time spent: 3 minutes

Problem set 0

Name: AnubhavNidhi

Time: 2 minutes

lastname=raw_input('enter last name:\n')
firstname=raw_input('enter first name:\n')
print firstname,lastname
johnafish (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 1 minute
#Problem set 0
#Name: johnafish
#Time: 2 minutes


lastName = raw_input("Enter your last name \n**")
firstName = raw_input("Enter your first name \n**")
print firstName
print lastName
smithjj42 (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 8 minutes
# Problem Set 0
# Name: J
#

inputLastName = str(raw_input('Enter last name: '))
inputFirstName = str(raw_input('Enter first name: '))
print 'Your name is ' + inputFirstName + ' ' + inputLastName
Pwnrod (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 10 minutes

Gathers user input and outputs manipulated result.

#Problem set 0
#Pwnrod

lastName = raw_input ('Enter your last name: ')
print 'Your last name is ' + lastName
firstName = raw_input ('Enter your first name: ')
print 'Your first name is ' + firstName
print 'Your full name is ' + firstName + ' ' + lastName
ionceban (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 10 minutes

First assignment for MIT 6.00 OpenCourseWare A Very Simple Program: Entering and Printing Your Name

#Problem Set 0
#Name:Ion Ceban
#Collaborators:None
#Time:00:10:00
# 
lastName = raw_input('Enter your last name: ');
firstName = raw_input('Enter your first name: ');
fullName = firstName + lastName;
print fullName;
biant92 (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 33 minutes

ASSN 0 for MIT 6.00 OpenCourseWare

#Problem Set 0
#Name:Rajko Vujic
#Collaborators:None
#Time:00:33:42
#
#A Very Simple Program: Entering and Printing Your Name
#
last_name = raw_input('What is your last name? ')
first_name = raw_input('What is your first name? ')
print first_name + '\n' + last_name
ChapLeo (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 10 minutes

Problem set: 0 Asks for the first name and last name, then prints them out respectively.

fname=raw_input('Enter your first name: ')
lname=raw_input('Enter your last name: ')
print fname
print lname


        
Aenohe (Self-grade: Could be better)
Submitted 2 years ago | Permalink | Time spent: 1 minute

Problem Set 0

Name: Igor

Collaborators: John Doe

Time: 3:30

lastName = input("What is your last name : ")
firstName = input("What is your first name : ")
print(firstName)
print(lastName)
elisa1707 (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 2 minutes

I just went the easy way

#problem set 0
#Name: Elisa Rivera
#Collaboration: wikipedia
#time: 2:00

x = raw_input ('First name')
y = raw_input ('Last name')
print = x, y
ahmed_ashour (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 2 hours

First assignment for MIT 6.00 OpenCourseWare

#Problem Set 0
#Name: Ahmed Ashour
#Collaborator: None
#Time : 2:42


fname = raw_input("Enter Your First Name")
lname = raw_input("Enter Your Last Name")
print fname, lname
tkalman (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 6 minutes
x = raw_input('Enter your last name?'+'\n'+'**')
y = raw_input('Enter your first name?'+'\n'+'**')

print (y +'\n'+ x )
ephesians_6 (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 10 minutes

On my class, it told me to use my birthday and lastname.

>>> #Problem Set 0
>>> #Name: Christina Freeman
>>> #Collaborators: none
>>> #Time Spent: 1 hour
>>> bday = "What is your date of birth?"
>>> lname = "What is your lastname?
SyntaxError: EOL while scanning single-quoted string
>>> lname = "What is your lastname?"
>>> print (bday)
What is your date of birth?
>>> birthday = raw_input()
9/22/1979
>>> print (lname)
What is your lastname?
>>> lastname = raw_input()
Freeman
>>> print (lastname, birthday)
('Freeman', '9/22/1979')

Comments:

ephesians_6
2 years ago

oh i see what i did wrong. I did the assignment for the wrong 6.00 SC But I had the right idea. I will watch the correct video this time.

Sign up or log in to comment

itinarch (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 5 minutes
 # Problem Set 0
 # Name: Dan
 # Collaborators: --
 # Time: <5 min
 # 

first = raw_input("Alright punk, what's your name!?")
second = raw_input("Hmph. And your last name, buddy?")
print "So you're telling me your name is",first,second+"? That's a likely story."
ryanzjlib (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 5 minutes
last_name = raw_input('Enter your last name:  ')
first_name = raw_input('Enter your first name:  ')
print first_name
print last_name
marianat (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 30 minutes
#Problem set 0
#Name: Maria Nattestad
#Collaborators: none
#Time: 0:30
#

lastname = raw_input('Enter your last name:  ')
firstname = raw_input('Enter your first name:  ')
print firstname
print lastname

fhalo (Self-grade: Could be better)
Submitted 2 years ago | Permalink | Time spent: 1 minute
FirstNameQuestion = "What is your First Name?"
print(FirstNameQuestion)
FirstName = raw_input()


SecondNameQuestion = "What is your Second Name?"
print(SecondNameQuestion)
SecondName = raw_input()

print (" Your First Name is " + FirstName )
print (" Your Second Name is " + SecondName )
LeslieProps (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 1 hour

Problem Set 0

#Problem Set 0
#Name: LeslieProps
#Collaborator:
#Time: 1:15
#

lastname = raw_input("Please enter your last name ")
firstname = raw_input("Please enter your first name ")

print firstname, '\n', lastname
Tanushree (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 5 minutes
#Problem Set 0
#Name: Tanushree
#Collaborators: None
#Time:5:30


lname = raw_input("Enter your last name")
fname = raw_input("Enter your first name")
print fname, lname
nickrt (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 5 minutes
#Problem Set0
#Name: Nick
#Collaborators: None
#Time: 0:05

firstName = raw_input('First Name?')
lastName = raw_input('Last Name?')

print firstName, lastName
tsewall (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 45 minutes
## Problem Set 0
## Name: Tommy Sewall
## Collaborators: none
## Time:0:45

l=raw_input("Enter your last name:")
f=raw_input("Enter your first name:")
print "Hello,", f,l,".", "How are you?"
nlu122 (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 30 minutes
# Problem Set 0
# Name: Nathan Lu
# Collaborators: None
# Time: 30 minutes
#
Fname = raw_input("Enter your First name: ")
Lname = raw_input("Enter your Last name: ")

print "hello", Fname, Lname, "welcome to the world of python"
delete (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 5 minutes

Asks user to input last name then first name. It outputs the first name then the last name.

#Problem Set 0
#Jennie 
#Collaborators: none
#Time: 5 minutes
#

lastname = raw_input("Please enter your last name: ")
firstname = raw_input("Please enter your first name: ")

print firstname
print lastname 
cbonturi (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 10 minutes

Wiki Exercises

  1. Write a program that asks the user to type in a string, and then tells the user how long that string was.

  2. Ask the user for a string, and then for a number. Print out that string, that many times. (For example, if the string is hello and the number is 3 you should print out hellohellohello.)

  3. What would happen if a mischievous user typed in a word when you ask for a number? Try it.

>>> print ("write something interesting about you routine")
write something interesting about you routine
>>> print ("write something interesting about you routine")
write something interesting about you routine
>>> response = raw_input()
To com fome, quero leite
>>> print (len(response))
24



--------------------------



>>> print ('Please, write your favorite number')
Please, write your favorite number
>>> resp1 = raw_input()
23
>>> number = int(resp1)
>>> print (number)
23
>>> print ('Now, write your favorite colour')
Now, write your favorite colour
>>> resp2 = raw_input()
purple
>>> color = str(resp2)
>>> print (color * number)
purplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurplepurple


------------------------------

>>> print ('Enter with a number')
Enter with a number

>>> response = raw_input ()
12
>>> response = int(response)
>>> print type(response)
<type 'int'>
>>> response = raw_input()
bla
>>> response = int(response)

Traceback (most recent call last):
  File "<pyshell#12>", line 1, in <module>
    response = int(response)
ValueError: invalid literal for int() with base 10: 'bla'
>>> print type(response)
<type 'str'>
Samcan (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 30 minutes

Problem Set 0

Name: Samcan

Collaborators: 0

Time: 30 minutes

print ('Enter your last name')
lastname = ('')

print ('Enter your first name')
firstname = ('')

print ('Hello ' + firstname, lastname)

Comments:

cbonturi
2 years ago

Hello, I think that to ask the user to write something, you have to write:

raw_input ()

Sign up or log in to comment

mcdermott1985 (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 3 hours

Assignment 1

This is the code to ask a person to input their first and last names

firstName = ('What is your first name?')

print firstName

lastName = ('What is your last name?')

print lastName

print firstName, 'and ', lastName

rokr16 (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 30 minutes

Problem Set 0

Name: Snehil Gupta

Collaborators: Wikipedia

Time: 2.00 hrs

Lastname = raw_input ('Enter your last name:') Firstname = raw_input ('Enter your firs name:') print Firstname print Lastname

# Problem Set 0
# Name: Snehil Gupta
# Collaborators: Wikipedia
# Time: 2.00 hrs

Lastname = raw_input ('Enter your last name:')
Firstname = raw_input ('Enter your firs name:')
print Firstname
print Lastname

Comments:

liminal18
2 years ago

good job!

rokr16
2 years ago

Thank you bro

#Thank you bro

Sign up or log in to comment

liminal18 (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 5 minutes

Problem Set 0

Collaborators: None

Time: 5 minutes

Name: Andrew Jones

lastname = raw_input('What is your last name?')
firstname = raw_input('What is your first name?')
print firstname + " " + lastname + " is in this class"
ynekrasov (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 1 hour
# Problem Set 0
# Name: Yuriy Nekrasov
# Collaborators: None
# Time: 1:00
#

LastName = raw_input ('Enter your Last Name: ')
FirstName = raw_input ('Enter your First Name: ')

print LastName, FirstName, 'attended MIT 6.00 lecture 1'
mcdermott_d (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 2 hours
#Assignment 1
#This is the code to ask a person to input their first and last names

firstName = ('What is your first name?')

print firstName 

lastName = ('What is your last name?')

print lastName


print firstName, 'and ', lastName
kcargh (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 2 minutes

Problem Set 0

#Problem Set 0
#Name: Casey

fname = raw_input ('What is your first name')
lname = raw_input ('What is your last name')

print 'Hello', fname, lname
natehotchkiss (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 2 minutes
#Problem Set 0
#Name: Natehotchkiss
#Collaborators: the internet
#Time: 2:00

q1=raw_input('Please enter your first name.')
q2=raw_input('Please enter your last name.')
space="_"

print('Welcome to Introduction to Computer Science and Programming!')
print(q1+space+q2)
dapakman (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 2 minutes

''' Created on Feb 18, 2012

@author: dapakman User input last name and first name, print out first name and last name"

last_name = raw_input('What is your last name?')
first_name = raw_input('What is your first name?')
print('Hello', first_name, ' ', last_name)
carmichael22 (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 1 minute
# Problem Set 0
# Name: Rob

first_name = raw_input('Enter your first name: \n')
last_name = raw_input('Enter your last name:\n')

print first_name, last_name
sebrenner (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 13 minutes

Pretty quick and easy assignment.

# Problem Set 0 
# Name: Scott Brenner
# Collaborators: None
# Date: 2011-01-04
# Start time: 7:05 PM
# End time: 7:18 PM
#

print ('Problem Set 0')
print ('Problem 1')

var_lname =  raw_input('What is your last name?')
#get user input and assign it to var_lname


var_fname =  raw_input('What is your first name?')
#get user input and assign it to var_fname

print var_lname
print var_fname
rcrrich (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 1 minute

Problem Set 0

Name : Chris Tang

Collaborators: Nonyabusinaz

Time:1:32

firstname=raw_input ('What is your first name?: ') lastname=raw_input('What is your last name?: ') print 'Your name is:',firstname, lastname

#Problem Set 0
#Name : Chris Tang
#Collaborators: Nonyabusinaz
#Time:1:32
#
firstname=raw_input ('What is your first name?: ')
lastname=raw_input('What is your last name?: ')
print 'Your name is:',firstname, lastname
ctang99 (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 2 minutes

Problem Set 0

#Problem Set 0
#Name : Chris Tang
#Collaborators: Nonyabusinaz
#Time:1:32
#
firstname=raw_input ('What is your first name?: ')
lastname=raw_input('What is your last name?: ')
print 'Your name is:',firstname, lastname
grwth (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 5 minutes

problem set 0

caspar

lastname= raw_input ('what is your last name')
firstname= raw_input ('what is your first name')

print lastname,firstname
Shemmerson (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 10 minutes

First assignment for MIT 6.00 OpenCourseWare

#Problem set 0
#Name: Shemmerson
#Time: 0.10

#ask for and print out a users last and first names

L = raw_input('Please enter your last name: ')
F = raw_input('Please enter your first name: ')
print F + ' ' + L

andidious (Self-grade: Could be better)
Submitted 2 years ago | Permalink | Time spent: 5 hours
fname = raw_input("Howdy, what's your first name?")
lname = raw_input("And your last?")
print fname, lname
jillgoslinga (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 15 minutes

PS 0

#PS 0
#Jill Ann

def namez():
   last = raw_input ("Wats ur last nameee? ")
   first = raw_input ("Waddya called ? ")
   print first, last
bigsonny (Self-grade: Outstanding)
Submitted 2 years ago | Permalink | Time spent: 1 minute

Problem set 0

#Problem Set 0
#Name: Bigsonny
#Collaborators: None
#Time: 0:00
#
#First we ask the user to enter his/her last name    
lastName = raw_input('What is your last name?')

#Second we ask the user to enter his/her first name
firstName = raw_input('What is your first name?')

#Last, we print the user's first and last name
print (firstName +" "+lastName)

 
spka2000 (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 30 minutes
#Problem Set 0
#Name: spka2000
#Collaborators: None
#Time: 15 min

last_name_entry = "Enter your last name:"
print (last_name_entry)
answer_lastname = raw_input()

first_name_entry = "Enter your first name:"
print (first_name_entry)
answer_firstname = raw_input()

print (answer_firstname)
print (answer_lastname)
Dino3317OSU (Self-grade: Pretty good)
Submitted 2 years ago | Permalink | Time spent: 10 minutes
# Problem Set 0
# Dino3317OSU


first = raw_input('What is your first name? ')
last = raw_input('What is your last name? ')
print 'Your name is:', first, last
alexmce (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
first = raw_input('Your first name?')
last = raw_input('Your last name?')
print 'Thanks for your time, '+first+' '+last+'.'
wolfei (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 30 minutes

Problem set 0

# Problem Set 0
# Name: Fer
# Collaborators: 
# Time: 00:30

first = raw_input('what is your last name? ')
    last = raw_input('what is your first name? ')
    print first, last
Jozrael (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 15 minutes

Completed a week or two ago, didn't realize there was an online submission at the time. CC welcome on all submissions.

#Problem Set 0
#Name: Charlie Roselius
#Collaborators: None
#Time: Approximately 0:15 (completed earlier)
#
print ("What is your last name?")
last_name = raw_input()
print ("What is your first name?")
first_name = raw_input()
print ("Your name is: " + first_name + " " + last_name)
TonyCook32 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute

Request last name, request first name, take input, print last name, #first name.

first_name = raw_input('Enter your first name:\n')
last_name = raw_input('Enter your last name:\n')

print first_name
print last_name
JeffSardwej (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
x = raw_input (["What is your last name:"])
y = raw_input (["What is your first name?"])
print y
print x
shadeofboolek (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute

I've already started working on this lessons a couple days ago. I've already finished the first assignment and currently working on the second one. I am glad I found this site. I can finally ask people questions and they are (hopefully) willing to answer me with straight answer rather than "read this" and give me a manual :P

# Problem Set 0
# Name: Boo Park
# Collaborators: none
# Time: 0.5 hours
#

lname = raw_input('Enter your last name:')
# will get the user's last name

fname = raw_input('Enter your first name:')
# will get the user's first name

print fname
print lname
morayi (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
# Problem Set 0 
# Name: MORAYI
# Collaborators: N/A 
# Time: 0:05 
#
userLastName = str(raw_input("Enter your last name: "))
userFirstName = str(raw_input("Enter your first name: "))
print (userFirstName)
print (userLastName)
machv5 (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 5 minutes

First assignment for MIT 6.00 OpenCourseWare

#Problem Set 0
#Date: 11/4/2011
#Name: N. MacLennan
#Collaborators: None
#Time: 5 minutes
#Python2.7

a = raw_input ("what is your first name? ")
b = (" ")
c = raw_input ("what is your last name? ")
print a+b+c
philliplowe (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 1 minute
#Problem Set 0
#Name: Lowe
#Time : 2 minutes


#Problem 1
#Write a program that does the following in order:
#1. Asks the user to enter his/her last name.
#2. Asks the user to enter his/her first name.
#3. Prints out the user's first and last names in that order.

print ("What is your last name?")
last_name = raw_input()

print ("What is your first name?")
first_name = raw_input()

print last_name, first_name
tachylyte (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
# Problem Set 0
# Name: tachylyte
# Python 3.2
# Time: 0:10
#
lastname = input('What is your last name? ')
firstname = input('What is your first name? ')
print(firstname, lastname, sep=' ')
anler (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 1 minute
# Problem Set 0¬                                                               
# Name: Anler
# Time: 1:00¬                                                                  
#·¬                                                                            
prompt = "**"¬                                                                 
¬                                                                              
last_name = raw_input("Enter your last name:\n" + prompt)¬                     
first_name = raw_input("Enter your first name:\n" + prompt)¬                   
¬                                                                              
print first_name¬                                                              
print last_name¬
MichaelAguirre (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 3 minutes
doodles103 (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 3 minutes
first=raw_input("What is your first name?")
last=raw_input("What is your last name?")

print "Well nice to meet you, Ms.", first, last

Comments:

doodles103
3 years ago

Probably not 3 minutes now that I look at it, but I did this quite a while ago so don't remember my time. Also, the Ms. part doesn't really work for everyone.

Sign up or log in to comment

jmarton (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 10 minutes

PS0 6.00: Introduction to Computer Science and Programming

Problem 1 1. Asks the user to enter his/her last name. 2. Asks the user to enter his/her first name. 3. Prints out the user's first and last names in that order.

#Problem Set 0
#Name: J. Marton
#Collaborators: None
#Time:10 minutes
#
>>> nameLast=input("What is your last name?")
What is your last name? Marton
>>> nameFirst=input("What is your first name?")
What is your first name? Julie
>>> print(nameFirst+nameLast)
 Julie Marton
CorryJm (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 1 minute

Problem Set 0

Name: CorryJm

Collaborators: me and the internet

Time: 5 minutes

lastname = raw_input("Enter your last name: ")
firstname = raw_input("Enter your first name: ")
print "Your full name is:", firstname, lastname
sundeep (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 1 minute
# Problem Set 0
# Name: Sundeep
# Time: 10 minutes
# Python 2.6

FirstName = raw_input("Enter your first name: ")
LastName = raw_input("Enter your last name: ")
print "Your full name is:", FirstName, LastName
Jaamoka (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
last = raw_input("What is your last name?")
first = raw_input("What is your first name?")
print("Your name is " + first + " " + last)
rohshall (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 1 minute
  • firstname = raw_input("Enter your first name: ")
  • lastname = raw_input("Enter your last name: ")
  • print "Your name is: ", firstname, lastname

Comments:

machv5
3 years ago

Hi rohshall, I'm a nub too. I have completed the first assignment but am having trouble locating where to submit my answer to the problem set. I signed up for the account, and have joined the class ( I see a "leave class" button so I assume I have joined) but cannot seem to find the submit homework part. Can you help me ty.

I have a question for you. Did you run your code?

Also here's my solution to the problem, it's slightly different than yours. I see where I could have named my variables better so that I don't run into problems when writing larger programs.

a = raw_input ("what is your first name? ")
b = (" ")
c = raw_input ("what is your last name? ")
print a+b+c
rohshall
3 years ago

Hi machv5, "Submit homework" section is at the bottom-most part of the assignment page. This section will appear only if you have not submitted homework for that assignment. HTH.

machv5
3 years ago

Ty, I just found it. Have a great day

Sign up or log in to comment

TorontoDru (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
# Problem Set 0
# Print First and Last Name

last_name = raw_input("Enter in your Last Name\n**")    #Get users Last Name

first_name = raw_input ("Enter in your First Name\n**")  #Get user First Name

print first_name  #Display First Name
print last_name   #Display Last Name

jdumagay (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 13 minutes
firstname=raw_input('What is yout first name?')
lastname=raw_input('What is yout last name?')
print ('Hello' + ' ' + firstname + ' ' + lastname +'!')
dalinda (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 15 minutes

First assignment MIT 6.00 OpenCourseWare Introduction to programming, python based.

# Problem Set 0
# Name: Arnualdas Dalinda
# Collaborators: None
# Time: 0:15

# Ask last and first name
LastName = raw_input('Please enter your last name: ')
FirstName = raw_input('Please enter your first name: ')
# Output First and Last name
print FirstName, LastName

# I also write this for python 3.x
#
##LastName = input('Please enter your last name: ')
##FirstName = input('Please enter your first name: ')
##print(FirstName, ' ', LastName)
ljbaumer (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 3 minutes

First, it asks the user for their first name. Second, it asks them for their last name and after that it prints their first name and last name in that order.

#assignment 0
#asks user for their first name and last name
firstname = raw_input('Please enter your first name: ')
lastname = raw_input('Please enter your last name: ')
print firstname, lastname
		
Dith (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
# Problem Set 0
# Name: Hans Jacob T. Stephensen (Dith)
# Collaborators: None
# Time: 0:05

last = raw_input('Please enter your last name: ')
first = raw_input('Please enter your first name: ')
print first, last
eudes (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 15 minutes
#Request last name, request first name, take input, print last name, #first name.

lastName = raw_input("Please enter your last name ")

firstName = raw_input("Please enter your first name ")

print firstName, lastName
mattb (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute

ps0

# Problem Set: 0
# Name: Mattb
# Collaborators: Curious Reef
# Time: 1
#
lastname = str(raw_input('Enter your last name: ')) #Ask user to enter last name
firstname = str (raw_input('Enter your first name: ')) #Ask user to enter first name
print firstname,lastname
pinio (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
# Problem Set 0
# Name: Pinio
# Collaborators: none
# Time: 1
#

lastName = str(raw_input("Enter your last name: "))
firstName = str(raw_input("Enter your first name: "))

print(firstName)
print(lastName)
mavsfan642 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
last = raw_input ("Please enter your last name: ")
first = raw_input ("Please enter your first name: ")
print last, first
KLone (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
# Problem Set 0
# Name: Kirk
# Collaborators: none
# Time: 5 min
#
last_name = raw_input('Last Name: ')

first_name = raw_input('First Name: ')

print last_name
print first_name
tbourke2 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
#pset0.py
#Problem Set 0
#Name: tbourke2
#Collaborators:None
#Time: About a minute

lastname = raw_input ('Please enter your last name: ') #Ask the user for their last name
firstname = raw_input ('Please enter your first name: ') #Ask the user for their first name

print firstname #Print the users first name
print lastname #Print the users last name
greentech101 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 10 minutes

Pseudocode for Lesson 1

Firstname_value = first name print: Enter your first name save Firstname_value

Lastname_value = last name print: Enter your last name save Lastname_value

print: Your full name is: Firstname_value Lastname_value

# Problem Set 0
# Name: Philip
# Time: 10 minutes
# Python 3.2

FirstName = input("Enter your first name: ")
LastName = input("Enter your last name: ")
print("Your full name is: ", FirstName, LastName)
gio (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
# Problem Set 0
# Name Gio

last = raw_input('Enter your last name: ')
first = raw_input('Enter your first name: ')

print first
print last
nick18 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
  1. The user inputs their first name, 2. The user inputs their last name, 3. Prints out the user's first and last name in the correct order.
#Problem Set 0
#Name: Nick
#Collaborators: None
#Time: 5 Minutes

#User inputs first name
First=raw_input("Enter your first name:  ")
#User inputs last name
Last=raw_input("Enter your last name:  ")
#prints
print First,Last
Vidyaranya (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute

program to enter name

second_name = (input "enter last name:  ")
first_name = (input "enter first name:  ")

print(second_name,first_name)
TheRealmccoy (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
#TheRealmccoy
#Assignment1.py

#Ask the first and last name of user and print it

#Ask the user to provide his first name
firstname= raw_input ("What is your first name? : ")

#Ask the user to provide his surname
lastname= raw_input ("Your surname please : ")
#print result

print firstname,lastname
Typus (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
#Problem Set 0


first=raw_input('Enter your first name: ')
last=raw_input('Enter your last name: ')
print first+' '+last
rajag (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
firstName=raw_input('Please enter your FirstName')
lastName=raw_input("Please enter your LastName')
print 'hai' +firstName + ' ' +lastName
Username53 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
#Problem Set 0
#Name: Username53
#Collaborators: None
#Time: 5-10 Minutes


last = raw_input("Please enter last name: ")
first = raw_input("Please enter first name: ")
print first,last
tuckertuck (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
# Problem Set 0
# Name: tuckertuck
# Collaborators: none
# Time: 5 minutes

last = raw_input('Enter your last name:')
first = raw_input('Enter your first name:')
print first, last
gatorfan (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 9 minutes
lastname = raw_input('What is your last name?')
firstname = raw_input('What is your first name?')

print firstname
print lastname
Inocula (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
lastname = input("What is your lastname?")
firstname = input("What is your first Name?")

print (firstname, lastname)
gandres (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 2 minutes

lname=raw_input ("What is your last name?")

fname= raw_input("What is your first name?")

print fname, lname

xwb1989 (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
python 3.2
lastname = input('Please enter your last name: ')
fisrtname = input('Please enter your first name: ')
print(lastname,firstname)

Comments:

machv5
3 years ago

Did you run your code?

I tried it and because you used input rather than raw_input there is an error because (any name you enter) variable has not been set.

you want to use raw_input instead of input

I am using 2.7 so if 3.2 allows your code to run with imput instead of raw_inout then I apologize.

Sign up or log in to comment

nim6us (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 25 minutes

The extra time was because I wanted to have a little fun with the wording, made it seem more friendly.

print "Tell me a little about yourself..."
fname = raw_input ("What might your first name be? ")
lname = raw_input ("In case I want to get formal, your last name is? ")
print "Well hello %s %s, it is a pleasure to meet you!"  % (fname, lname)
rplomantes (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 1 minute
# Problem Set 0
# Name: Roy Plomantes
# Collaborators: Roy Plomantes
# Time: 2:00
#
lastname = raw_input("Please enter your last name : ")
firstname = raw_input("Please enter your firstname : ")
firstname + " " + lastname
Gpyti (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 2 minutes

First assignment for MIT 6.00 OpenCourseWare Class from MIT

# Problem Set 0
# Name: Gpyti
# Collaborators: None
# Time 1:00 min

first = raw_input('What is your First name?')
last = raw_input('What is your last name?')
print 'your first name is',first,'and your last mame is',last
                 
SunshineMom (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
LastName=raw_input('Enter your last name:')
FirstName=raw_input('Enter your first name:')
print FirstName
print LastName
mjcuva (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute

pset0

MIT 6.00 OpenCourseWare

1.Asks user for last name. 2.Asks user for first name. 3.Prints users name.

last = raw_input ('Enter your last name ') #Asks for last name
first = raw_input ('Enter your first name ') #Asks for first name

print first, last #Print the full name
dmoyer2 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 10 minutes

Problem Set 0 (Lesson 1, assignment 1)

Name: dmoyer2

Time: 0:10

firstName = raw_input('Please enter your First name: ')
lastName = raw_input('Please enter your Last name: ')
print firstName
print lastName
derrickwhiting (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
last = raw_input("What is your last name?)

first = raw_input("What is your first name?")

print first, last

Comments:

machv5
3 years ago

man I am surprised to see so many variants that do the same thing. just to let you know you missed a quotation mark on line 1, which is why we are seeing odd syntax coloring lol.

Sign up or log in to comment

dm571 (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 5 minutes

Problem Set 0

Ask for last name and first name. Then print first and last name.

Last_name=raw_input('Enter your last name:')
First_name=raw_input('Enter your first name:')
print 'Your name is',First_name,Last_name
HiroshiSan (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
# Problem Set 0
# Name: Joseph Santoyo 
# Time: 0:10
#
firstName = raw_input('Please enter your first name: ')
lastName = raw_input('Please enter your last name: ')

print firstName
print lastName
eko (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
a=raw_input('Enter your last name:')
b=raw_input('Enter your first name:')
print b
print a
CCAR786 (Self-grade: Could be better)
Submitted 3 years ago | Permalink | Time spent: 3 minutes

MIT 6.00 Intro to Comp Sci

Prolem set: 0

Name: CCAR786

>>>
message1='What is your last name?';message2='what is your first name?'
>>> lastname=raw_input(message1);firstname=raw_input(message2);print firstname,lastname
aaf786 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute

Problem Set 0

aaf

lastName = raw_input("Enter your last name: ")
firstName = raw_input("Enter your first name: ")
print firstName, lastName
mgoff11 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
#Problem Set 0
#Michael 

lastname = raw_input("What is your last name?")
firstname = raw_input("What is your first name?")
print firstname, lastname
jimmy (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 2 minutes

Assignment 0

# Problem Set 0
# Name: jimmy
# Collaborators: 0
# Time: 00:01:00

firstname = raw_input('Please Enter your first name ')
lastname = raw_input('Please Enter your last name ')
print firstname, lastname
TheHedge (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
# Problem Set 0
# Name: TheHedge
# Collaborators: 0
# Time: 00:01:00

firstName = raw_input('Enter your first name:')
lastName = raw_input('Enter your last name:')

print firstName + " " + lastName
osmards (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
#!/usr/bin/env python
#encoding=utf-8

last_name = raw_input("What's your last name? ")
first_name = raw_input("What's your first name? ")

print "Your name is", first_name, last_name

Comments:

mercutio22
3 years ago

Essa foi fácil Osmar!

Vamo que vamo. Precisando de ajuda para os próximos é só dizer.

Abraço.

Sign up or log in to comment

fell (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
  1 #!/usr/bin/env python
  2 #
  3 # Reads first name then last name and prints both.
  4 #-------------------------------------------------
  5 
  6 
  7 first = raw_input('Enter first name: ')
  8 last = raw_input('Enter last name: ')
  9 
 10 print first, last

fredgust (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 2 minutes
# Problem Set 0
# Name: Fredrik Gustafsson  
# Python version: 3.2
# Time: 0:01

name_last = input("Please input your last name: ")
name_first = input("Please input your first name: ")

print ('Your name is:', name_first, name_last)
dangr1 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 15 minutes

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)
Ahmad (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
 # Problem Set 0
 # Name: Ahmad
 # Collaborators: None
 # Time: about 5 minutes
 
LastName = raw_input('Enter your last name')
FirstName = raw_input('Enter your first name')
print('Your name is'), FirstName, LastName
jsuske (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 10 minutes

Assignment 1

lastName = raw_input("Whats your last name?")
firstName = raw_input ("Whats your first name?")
print firstName, lastName
vbakhtyr (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 2 hours
last_name = raw_input('What is your last name?')
first_name = raw_input('What is your first name?')
print last_name
print first_name
Juma (Self-grade: Could be better)
Submitted 3 years ago | Permalink | Time spent: 4 hours

Problem set O

print ("Enter your first name:")
firstname = raw_input()
print ("Enter your last name:")
lastname = raw_input()
print firstname
print lastname
apoo (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
#!/usr/bin/env python
#encoding=utf-8

first_name  = raw_input("Enter your First Name: ")
last_name = raw_input("Enter your Last name: ")

print "%s %s" % (first_name, last_name)
mercutio22 (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 5 minutes
#!/usr/bin/env python
#encoding=utf-8

last_name = raw_input("What's your last name? ")
first_name = raw_input("What's your first name? ")

print "Your name is", first_name, last_name
talltrees (Self-grade: Could be better)
Submitted 3 years ago | Permalink | Time spent: 1 hour
atomiccodelab (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 15 minutes

Problem Set 0 - MIT 6.00 OpenCourseWare

Python script asks for a first and last name then prints it out

# Problem Set 0
# Name: Atomic Code Lab
# Coded for Python 3.2
# Script asks for first and last name, then prints it out.

first_name = input("Please enter your first name.\n")
last_name = input("Please enter your last name.\n")

print(first_name + '\n' + last_name)
zizidorf (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 15 minutes
#Problem set 0
#Name : zizidorf

lastName = raw_input("Enter your last name ")

firstName = raw_input(" Enter your first name ")

print firstName, lastName
baggedlunch (Self-grade: Could be better)
Submitted 3 years ago | Permalink | Time spent: 10 minutes

name game

by: Jesse

print "Jesse's program! No big deal." print "First things first, what's your last name?" last = raw_input() print "And your first name?" first = raw_input() print ("Got it! You are " + first + " " + last + "!")

# name game
# by: Jesse


print "Jesse's program! No big deal."
print "First things first, what's your last name?"
last = raw_input()
print "And your first name?"
first = raw_input()
print ("Got it! You are " + first + " " + last + "!")
slivvy (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 15 minutes
# Problem Set 0
# Name: Slivvy
# Collaborators: Your Mom
# Time: about 15 minutes


print 'Enter your first name: '
firstname = raw_input('# ')
print 'Enter your last name: '
lastname = raw_input('# ')
print 'Hello {0} {1}'.format(firstname,lastname)
conwayblue (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
# Problem Set 0
# Name: conwayblue
# !python

# Request first and last names then prints both.

firstName = raw_input("Yo dog, What\'s your first name? ")
lastName = raw_input("...and your last? ")

print firstName, lastName
ggeorge2814 (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 10 minutes
# Problem Set 0 
# Name: Geremy George
# Time: 0:10 
#
lastName = raw_input("May I have your last name? ")

firstName = raw_input("And your first? ")

print ("Ah, yes! Here we are. Wonderful to see you ") + firstName,lastName + ("!")
ProwL (Self-grade: Could be better)
Submitted 3 years ago | Permalink | Time spent: 19 minutes

Ask for last name, take user input, ask for first name, take user input, print out first name then last name.

# Problem Set 0
# Name: ProwL
# Collaborators: None
# Time: 00:19
#
print ("Enter your last name")
lastName = raw_input("** ")
print ("Enter your first name")
firstName = raw_input("** ")
print firstName
print lastName
m0nkeysensei (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 3 hours
def name_prompt():
    first = raw_input('Please Enter Your First Name: ')
    last = raw_input('Please Enter Your Last Name: ')
    
    return "%s %s" % (first, last)

whole_name = name_prompt()
print "Your name is %s" % whole_name
ariel0 (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 2 minutes
# Problem Set 0
# Name: ariel0 
# Collaborators: 
# Time: 2:10
#
apellido=raw_input("Enter your last name:\n**")
nombre=raw_input("Enter your first name:\n**")
print nombre
print apellido
mic3ff (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 15 minutes
# Problem Set 0
# Name: mic3ff
# Dare: 2011-02-11 16:01

LastName = raw_input("Last name: ")
GivenName = raw_input("Given name: ")
print "Welcome "+GivenName+" "+LastName
4orty4 (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 15 minutes
# Problem Set 0
# Name: 4orty4
# Collaborators: NA
# Time: 0:15
# 

lastname = raw_input('What is your last name?')

firstname = raw_input('What is your first name?')

print 'Your name is', firstname, lastname

exit = raw_input('Press \'Return\' key to quit')

Comments:

4orty4
3 years ago

That last line is there just to keep the python.exe window from disappearing before I have a chance to see if it printed the full name. I wonder if this is normal behavior, or if others are running their programs differently...

Sign up or log in to comment

dacorest (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 6 minutes
#problem set 0
#Name Waz
#time: 6mins


ln = raw_input('What is your last name?')
print
fn = raw_input('What is your first name?')
print
print 'Your name is '+ ' '+ fn +' '+ln

a3k3 (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 hour

First Last Assignment

# Amy Karoline
# Course 600
# Prob Set 0
# Time: 1 hour
####

lastName = raw_input("Enter your last name:")

firstName = raw_input("Enter your first name:")

print firstName, lastName
trefecta (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
# Problem Set 0
# Name: Trefecta

userFirstName = raw_input("Enter your first name: ")
userLastName = raw_input("Enter your last name: ")
print userFirstName, userLastName
meanmuggin (Self-grade: Pretty good)
Submitted 3 years ago | Permalink | Time spent: 1 minute
# Problem Set 0
 # Name: meanmuggin
 # Collaborators: N/A
 # Time: 1:00
 # 
 

first = raw_input("Enter your first name ");
last = raw_input("Enter your last name ");

print first, last
ochikobore (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute

It took me a while to first figure this one out.

#Andrew
#Assignment 0

first_name = raw_input("What is your first name? ")
last_name = raw_input("What is your last name? ")
print "Hello "+first_name,last_name+", nice to meet you!"
turbopenguine (Self-grade: Could be better)
Submitted 3 years ago | Permalink | Time spent: 1 hour
#problem set 0
#name; turbopenguin
#time; 1:00
forename = str(raw_input("What is your first name? "))
surname = str(raw_input("What is your surname name? "))
print str("Your name is; "+forename+" "+surname)
samwisethetired (Self-grade: Outstanding)
Submitted 3 years ago | Permalink | Time spent: 1 minute
lname = str(raw_input("What is your last name? "))
fname = str(raw_input("What is your first name? "))
print fname , lname
rfh (Self-grade: Outstanding)
Submitted 3 years ago | Permalink
last_name = raw_input("What is your last name?")
first_name = raw_input("What is your first name?")

print first_name + " " + last_name
ginsu (Self-grade: Pretty good)
Submitted 3 years ago | Permalink
print "Hiya. What is your first name? "
first = raw_input()
print "OK. And what is your last name? "
last = raw_input()
print ("Nice to meetcha, " + first + " " + last +"!")
Deb (Self-grade: Outstanding)
Submitted 3 years ago | Permalink

Assignment #0 - entering and printing your name

#Assignment #0 - entering and printing your name

FName = raw_input('Enter your first name: ')
LName = raw_input('Now, enter your last name: ')
print 'Your name is ' + FName + ' ' + LName
montego (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
#montego
#lesson 1, Assignment 1

firstName = raw_input('What is your first name?')
lastName = raw_input('What is your last name?')

Print = firstName, lastName
wborskey (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
  1. Asks the user to enter his/her last name. 2. Asks the user to enter his/her first name. *3. Prints out the user’s first and last names in that order.
#Problem 0
last_name = raw_input("Please enter your last name: ")
first_name = raw_input("Please enter your first name: ")
print first_name + "\n" + last_name
hugburns (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
#as1.py
#Assignment 1
#Hugh Burns
lname = raw_input('Please enter your last name: ')
fname = raw_input('Please enter your first name: ')
print fname
print lname
eellson (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
lastName = raw_input("Enter your last name")
firstName = raw_input("Enter your first name")
print firstName, lastName

Comments:

chuckh
4 years ago

Congrats on starting the class! Good luck, eellson.

Sign up or log in to comment

robotsapproach (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

firstName = raw_input("Enter your first name: ") lastName = raw_input("Enter your last name: ") print firstName, lastName

firstName = raw_input("Enter your first name: ")
lastName = raw_input("Enter your last name: ")
print firstName, lastName
jbuck0 (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0

firstname = raw_input ("Enter your first name: ")
lastname = raw_input ("Enter your last name: ")
print firstname, lastname
DvorakAJS (Self-grade: Could be better)
Submitted 4 years ago | Permalink
#ask user for his name and then print it out

print 'What is your first name?' 
first_name = raw_input ('> ')
#used 2 lines, could have done it in one

print 'What is your last name?'
last_name = raw_input ('> ')


print 'Your name is',first_name, last_name
feureau (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: Feureau Appleseed
# Collaborators: None
# Time: 
#
import sys

lastName = input("Enter your last name: ")
firstName = input("Enter your first name: ")
print(firstName + "\n" + lastName)
benjaminw (Self-grade: Pretty good)
Submitted 4 years ago | Permalink

Problem Set 0

Name: Ben White

Time spent: 30 minutes

Program that asks user last and first name and then prints concat. of both

lastname = raw_input('What is your last name? ')
firstname = raw_input('What is your first name? ')
print firstname, lastname
jaioxung (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: Jaioxung
# Collaborators: none
# Time: 0:02
#

lastName = raw_input("What is your Last Name?")
firstName = raw_input("What is your First Name?")

print firstName, lastName
chrcoe (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
lastName = raw_input('Please enter your last name: ')
firstName = raw_input('Please enter your first name: ')
#print 'Your name is: ' + firstName + ' ' + lastName
print "Your name is: %s %s" %(firstName, lastName)
kpmoore (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
last_name = raw_input('What is your last name? ')
first_name = raw_input('What is your first name? ')
print "Your name is", first_name, last_name
jeff_farkas (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
#++++++++++++++++++++++++++++++++++++++++++++
# Problem Set 0 
# Name: Jeff Farkas
# Date/Time Submitted: 10/19/2010 Time: 7:00 AM
# Time for assignment: 5 Minutes.
# This program is made  to allow a user to input their last 
# and first name and then print them out in the
# the following order: First Name and Last Name.
#++++++++++++++++++++++++++++++++++++++++++++

last_name = raw_input('Enter your last name: ')
first_name = raw_input('Enter your first name: ')
space = ' '
print  'Your name is: ' + first_name + space + last_name
mrphud (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
#This program ask for and prints out the user's first and last name
firstname = raw_input("enter your first name: ")
lastname = raw_input("enter your last name: ")
print firstname, lastname
dmike88 (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
lastname = raw_input('Enter your last name: ')
firstname = raw_input('Enter your first name: ')
print 'Your name is ' + firstname + ' ' + lastname
Nicholas123 (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
last = raw_input('Enter your last name: ')
first = raw_input('Enter your first name: ')
print first + ' ' + last
Shewlayce (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: Shewlayce
# Collaborators: None
# Time: 0:05 
#

first_name = raw_input("What is your first name? ")
last_name = raw_input("What is your last name? ")
 
print first_name, last_name
dimebucker (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: Matt Coley
# Collaborators:
# Time: :10
#

lastName = raw_input("Enter your last name: ")
firstName = raw_input("Enter your first name: ")
print(firstName)
print(lastName)
ndwhite13 (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

Program asks for input of last name and first name, then prints first name and last name in that order.

# Assignment 0, Problem 1
lastName = raw_input("What is your last name? ")
firstName = raw_input("What is your first name? ")
print firstName + " " + lastName
rs031759 (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

Problem Set 0

Name: Ricky Sumarto

Time: 10 minutes

fname=str(raw_input("Enter your first name: ")) lname=str(raw_input("Enter your last name: ")) print ("Your name is " + fname + " " + lname)

# Problem Set 0
# Name: Ricky Sumarto
# Time: 10 minutes
#
fname=str(raw_input("Enter your first name: "))
lname=str(raw_input("Enter your last name: "))
print ("Your name is " + fname + " " + lname)
andrewmeyer (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: Andrew
# Time: 0:04 
#
# Inputs users last name then first name and returns first name and last name in proper order

lastName = raw_input("What is your last name? ")
firstName = raw_input("What's your first name? ")

print firstName, lastName
chip (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

Problem Set 0, using python3 evn

#Problem Set 0

user_lastname =  input("Enter your last name:")
user_firstname = input("Enter your first name:")
print(user_firstname, user_lastname)
Peragon (Self-grade: Pretty good)
Submitted 4 years ago | Permalink

Problem Set 0 Name: Peragon Time: 30 seconds

first_name = raw_input('What is your first name? ')
last_name = raw_input('What is your last name? ')
print first_name
print last_name
Joe (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

A very simple program: entering and printing your name

# Problem Set 0
# Name: Joe Li
# Time: 2:00
#
print("Enter your last name:")
last_name=raw_input()
print("Enter your first name:")
first_name=raw_input()
print(first_name)
print(last_name)
BTheMad (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name Alex
# Time 2010-02-15 17:58

last_name  = raw_input('last name?\n**')
first_name = raw_input("first name?\n**")

print first_name + ' ' + last_name
scarolan (Self-grade: Pretty good)
Submitted 4 years ago | Permalink

Problem 1. Write a program that does the following in order:

  1. Asks the user to enter his/her last name.
  2. Asks the user to enter his/her first name.
  3. Prints out the user’s first and last names in that order.
print ('Enter your last name: ')
lastname = raw_input()
print ('Enter your first name: ')
firstname = raw_input()
print (firstname + " " + lastname)
Deathly809 (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem 1
# Time: 00:00:30
# Name: Jeffrey Robinson
# Description:  Will read in the users last name then their
#               first name.  Then the program will print out
#               their first name then print out their last
#               name
last_name = raw_input("Please enter your last name ")
first_name = raw_input("Please enter your first name ");
print  first_name, last_name
NawXela (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
#Problem Set 0
#Name: Alex
#Collaborators: None
#Time: 0:20

#My first name program.
firstname=raw_input('Enter your first name:')
lastname=raw_input('Enter your last name:')
print "Thank you, " + firstname + " " + lastname
andrea (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
#
# Author    : Andrea 
# Filename : ps0.py
# Purpose  : Lesson 1 MIT OCW, usage of raw_input and string manipulation
#
#

print '######  ps0.py ######'
print '\n'
print 'A simple example to demonstrate i/o'

last_name = raw_input('\tPlease enter your last name: ')
first_name = raw_input('\tPlease enter your first name: ')

print '\n\tYour last name is:\t',  last_name

print '\tYour first name is:\t',  first_name

print '\tThank you!'
jyen (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: Jyen
# Time: 5 mins

lname = raw_input("Enter your last name:")
fname = raw_input("Enter your first name:")
print fname + " " + lname
Mongey (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0 
# Name: Mongey
# Time: 1:30 
firstName = raw_input("What is your first name ? : \n")
secondName = raw_input("What is your second name ? :\n ")

print "Your name is " + firstName + " " + secondName
gogetmeaflapjack (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
print lastname = raw_input("Last name?: ")
print firstname = raw_input("First?: ")

print (firstname, lastname)

zpritchard (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
lastName = raw_input('Enter your last name: ')
firstName = raw_input('Enter your first name: ')
name = firstName + '\n' + lastName
print name
danmanuk (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: danmanuk
# Collaborators: n/a
# Time: 0:30

lastname = raw_input('Enter you last name:')
firstname = raw_input('Enter you first name:')

print firstname
print lastname
Saouka (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
#Problem Set 0
#Name: Saouka
#Collaborators: None
#Time: 0:10
LastName = raw_input('What is your last name? \n')
FirstName = raw_input('What is your first name? \n')
print FirstName, '\n', LastName
MRB (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
#   Problem Set 0
#   Name:  MRB
#

first_name = raw_input('What is your FIRST name?\n')
last_name = raw_input('What is your LAST name?\n')
print "Have fun, "+first_name+" "+last_name+"!"
jayd (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
#Problem Set 0
#jayd
lastName = raw_input("Enter your last name:")
firstName = raw_input("Enter your first name:")
print firstName +" "+lastName
snahor (Self-grade: Could be better)
Submitted 4 years ago | Permalink
lastname = raw_input('Enter your last name: ')
firstname = raw_input('Enter your first name: ')
print firstname, lastname   
jspash (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: jspash
# Collaborators: me and the dog
# Time: 0:20 (give or take 5 seconds)
#
last_name = raw_input('Enter your last name:')
first_name = raw_input('Enter your first name:')
print first_name
print last_name
yanni79 (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
last_name = raw_input('Last name? \n**')
first_name = raw_input('First name? \n**')
print first_name, last_name
hobophobe (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Lists for questions and answers.
quests = [ 'Last name:  ', 'First name: ', ]
answer = []

for q in quests:
  a = None
# Don't take 'no [input]' for an answer.
  while not a:
    a = raw_input(q)
  answer.append(a)

# For reuse this might not be appropriate.
answer.reverse()

for a in answer:
  print(a)

Comments:

shaggorama
4 years ago

If you'd used comma like "print a," instead of "print a" (why the parens?) the names print on the same line. You clearly have a decent idea of what you're up to though so I don't even know why I'm pointing this out :)

Sign up or log in to comment

mand0 (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
#Problem Set 0
#Name: mand0
#Collaborators: none
#Time: ??

print ('Enter your last name:')
lastname = input()

print ('Enter your first name:')
firstname = input()

print('Nice to meet you ' + firstname + ' ' + lastname)
Gautama (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
#!
# Problem Set 0
# Name: Gautama Shakyamuni
# Collaborators:
# Time: 00:02:00
#

lastname = input("Please enter your LAST name: ")
firstname = input("Please enter your FIRST name: ")
print("Hello and welcome,", firstname, lastname, "!")
      
dmobile1337 (Self-grade: Pretty good)
Submitted 4 years ago | Permalink

Sorry, doing mine in Python 3.1.1 as it is what I can read easier and I like the challenge of converting the coursework to 3.1.1. If this is going to be a problem going forward please let me know.

#Problem Set 0
#Name: Dick Jones
#Collaborators: N/A
#Time: 3 minutes
#

firstName = input("What is your first name?\n")
lastName = input("What is your last name?\n")
print('Greetings, ' + firstName + ' ' + lastName + '!')
AmbyR00 (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: Jaro Larnos
# Collaborators: -
# Time: 2 minutes
#

surname = raw_input('Please enter your surname: ')
firstname = raw_input('Now enter your given name: ')
print "Your full name is " + firstname + " " + surname
klen (Self-grade: Could be better)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: Kirill Klenov
# Time: 0:04

last_name = raw_input("Enter your last name: ")
first_name = raw_input("Enter your first name: ")
print '%s\n%s' % (first_name, last_name)
sumzup (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
firstName = raw_input("What's your first name?")

lastName = raw_input("What's your last name?")

print "This is assignment is boring.  However, your full name is", firstname, lastName
electracool (Self-grade: Could be better)
Submitted 4 years ago | Permalink
print "Enter your last name" 
ln = raw_input()
print "Enter your first name" 
fn = raw_input() 

print "Hello ",fn,ln  
cornbread (Self-grade: Pretty good)
Submitted 4 years ago | Permalink
fname = raw_input("Your first name?: ")
lname = raw_input("Your last name?: ")
print "Your name is ", fname, " ", lname
rabidxero (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
def output (first, last):
    print ("Greetings", first, last, "nice to meet you!")

first = input("What is your first name? ")
last = input("What is your last name? ")
output(first, last)
bcroq (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: Bertrand Croq
# Time: 0:05

name = raw_input('Enter your last name:\n**')
firstname = raw_input('Enter your first name:\n**')
print firstname
print name
resurge (Self-grade: Outstanding)
Submitted 4 years ago | Permalink
# Problem Set 0
# Name: Jeroen Pelgrims
# Collaborators: 
# Time: 0:05
# 
lastname = raw_input('Enter your last name:\n**')
firstname = raw_input('Enter your first name:\n**')
print "%s\n%s" % (firstname, lastname)
Argher (Self-grade: Pretty good)
Submitted 4 years ago | Permalink

I decided to do it slightly differently, just for kicks. As differently as you can get with this, anyway.

print "Enter your last name:"
a = raw_input()
print "Enter your first name:"
b = raw_input()
print b, a
mad_casual (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

Problem Set 0

Name: mad_casual

Collaborators:N/A

Time: As fast as I could type it.

lastname = raw_input('Enter your last name\n**')
firstname = raw_input('Enter your first name\n**')

print firstname,'\n',lastname
Slayer706 (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

Assignment 1

#Slayer706
#Lesson 1, Assignment 1
lastName = raw_input("Enter your last name: ")
firstName = raw_input("Enter your first name: ")
print firstName, lastName
JesFine (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

pset0

last  = raw_input('Enter your last name:\n**')
first = raw_input('Enter your first name:\n**')

print first
print last
zephon (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

Asks for last name, asks for first name, prints out first followed by last name.

last_name = raw_input('Enter your last name:\n')
first_name = raw_input('Enter your first name:\n')
print first_name
print last_name
garg (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

1. Asks the user to enter his/her last name. 2. Asks the user to enter his/her first name. *3. Prints out the user’s first and last names in that order.

# Problem Set 0
# Name: garg

first_name = raw_input('Enter your last name:\n**')
last_name = raw_input('Enter your first name:\n**')

print first_name
print last_name

Comments:

JesFine
4 years ago

Looks like you reversed the first_name and last_name variables during input.

Sign up or log in to comment

duallain (Self-grade: Outstanding)
Submitted 4 years ago | Permalink

First assignment for MIT 6.00 OpenCourseWare

Class from iTunes U.

Introduction to programming, python based.

#Request last name, request first name, take input, print last name, #first name.

lastName = raw_input("Please enter your last name ")

firstName = raw_input("Please enter your first name ")

print firstName, lastName