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 ProgrammingClass length: 24 weeks. Start anytime. Creator: duallain Status: Established |
Join this class! |
|
Lesson 1: Assignment 1Homework Submissions198 total# 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
# 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
No comments. Sign up or log in to comment # 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)
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment # 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)
No comments. Sign up or log in to comment lastName = raw_input("Enter your last name \n**")
firstName = raw_input("Enter your first name \n**")
Print("Your name is" firstName + " " + lastName)
No comments. Sign up or log in to comment Problem set 0Name: AnubhavNidhiTime: 2 minuteslastname=raw_input('enter last name:\n')
firstname=raw_input('enter first name:\n')
print firstname,lastname
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment 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;
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment Problem Set 0Name: IgorCollaborators: John DoeTime: 3:30lastName = input("What is your last name : ")
firstName = input("What is your first name : ")
print(firstName)
print(lastName)
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment x = raw_input('Enter your last name?'+'\n'+'**')
y = raw_input('Enter your first name?'+'\n'+'**')
print (y +'\n'+ x )
No comments. Sign up or log in to comment 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: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. # 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."
No comments. Sign up or log in to comment last_name = raw_input('Enter your last name: ')
first_name = raw_input('Enter your first name: ')
print first_name
print last_name
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment 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 )
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment #Problem Set0
#Name: Nick
#Collaborators: None
#Time: 0:05
firstName = raw_input('First Name?')
lastName = raw_input('Last Name?')
print firstName, lastName
No comments. Sign up or log in to comment ## 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?"
No comments. Sign up or log in to comment # 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"
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment Wiki Exercises
>>> 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'>
No comments. Sign up or log in to comment Problem Set 0Name: SamcanCollaborators: 0Time: 30 minutesprint ('Enter your last name')
lastname = ('')
print ('Enter your first name')
firstname = ('')
print ('Hello ' + firstname, lastname)
Comments:Hello, I think that to ask the user to write something, you have to write: raw_input () Assignment 1This is the code to ask a person to input their first and last namesfirstName = ('What is your first name?') print firstName lastName = ('What is your last name?') print lastName print firstName, 'and ', lastName No comments. Sign up or log in to comment Problem Set 0Name: Snehil GuptaCollaborators: WikipediaTime: 2.00 hrsLastname = 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
Problem Set 0Collaborators: NoneTime: 5 minutesName: Andrew Joneslastname = raw_input('What is your last name?')
firstname = raw_input('What is your first name?')
print firstname + " " + lastname + " is in this class"
No comments. Sign up or log in to comment # 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'
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment #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)
No comments. Sign up or log in to comment ''' 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)
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment Problem Set 0Name : Chris TangCollaborators: NonyabusinazTime:1:32firstname=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
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment problem set 0casparlastname= raw_input ('what is your last name')
firstname= raw_input ('what is your first name')
print lastname,firstname
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment fname = raw_input("Howdy, what's your first name?")
lname = raw_input("And your last?")
print fname, lname
No comments. Sign up or log in to comment PS 0 #PS 0
#Jill Ann
def namez():
last = raw_input ("Wats ur last nameee? ")
first = raw_input ("Waddya called ? ")
print first, last
No comments. Sign up or log in to comment 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)
No comments. Sign up or log in to comment #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) No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment first = raw_input('Your first name?')
last = raw_input('Your last name?')
print 'Thanks for your time, '+first+' '+last+'.'
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment 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)
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment x = raw_input (["What is your last name:"]) y = raw_input (["What is your first name?"]) print y print x No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment # 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)
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment # 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=' ')
No comments. Sign up or log in to comment # 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¬
No comments. Sign up or log in to comment No comments. Sign up or log in to comment 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: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. 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
No comments. Sign up or log in to comment Problem Set 0Name: CorryJmCollaborators: me and the internetTime: 5 minuteslastname = raw_input("Enter your last name: ")
firstname = raw_input("Enter your first name: ")
print "Your full name is:", firstname, lastname
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment last = raw_input("What is your last name?")
first = raw_input("What is your first name?")
print("Your name is " + first + " " + last)
No comments. Sign up or log in to comment
Comments: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
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. Ty, I just found it. Have a great day # 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
No comments. Sign up or log in to comment firstname=raw_input('What is yout first name?')
lastname=raw_input('What is yout last name?')
print ('Hello' + ' ' + firstname + ' ' + lastname +'!')
No comments. Sign up or log in to comment 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)
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment # 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)
No comments. Sign up or log in to comment last = raw_input ("Please enter your last name: ")
first = raw_input ("Please enter your first name: ")
print last, first
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment 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)
No comments. Sign up or log in to comment # Problem Set 0
# Name Gio
last = raw_input('Enter your last name: ')
first = raw_input('Enter your first name: ')
print first
print last
No comments. Sign up or log in to comment
#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
No comments. Sign up or log in to comment program to enter namesecond_name = (input "enter last name: ") first_name = (input "enter first name: ") print(second_name,first_name) No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment #Problem Set 0
first=raw_input('Enter your first name: ')
last=raw_input('Enter your last name: ')
print first+' '+last
No comments. Sign up or log in to comment firstName=raw_input('Please enter your FirstName')
lastName=raw_input("Please enter your LastName')
print 'hai' +firstName + ' ' +lastName
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment lastname = raw_input('What is your last name?')
firstname = raw_input('What is your first name?')
print firstname
print lastname
No comments. Sign up or log in to comment lastname = input("What is your lastname?")
firstname = input("What is your first Name?")
print (firstname, lastname)
No comments. Sign up or log in to comment lname=raw_input ("What is your last name?") fname= raw_input("What is your first name?") print fname, lname No comments. Sign up or log in to comment python 3.2
lastname = input('Please enter your last name: ')
fisrtname = input('Please enter your first name: ')
print(lastname,firstname)
Comments: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. 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)
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment LastName=raw_input('Enter your last name:')
FirstName=raw_input('Enter your first name:')
print FirstName
print LastName
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment Problem Set 0 (Lesson 1, assignment 1)Name: dmoyer2Time: 0:10firstName = raw_input('Please enter your First name: ')
lastName = raw_input('Please enter your Last name: ')
print firstName
print lastName
No comments. Sign up or log in to comment last = raw_input("What is your last name?)
first = raw_input("What is your first name?")
print first, last
Comments: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. Problem Set 0Ask 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
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment
a=raw_input('Enter your last name:')
b=raw_input('Enter your first name:')
print b
print a
No comments. Sign up or log in to comment MIT 6.00 Intro to Comp Sci Prolem set: 0Name: CCAR786>>> message1='What is your last name?';message2='what is your first name?' >>> lastname=raw_input(message1);firstname=raw_input(message2);print firstname,lastname No comments. Sign up or log in to comment Problem Set 0aaflastName = raw_input("Enter your last name: ")
firstName = raw_input("Enter your first name: ")
print firstName, lastName
No comments. Sign up or log in to comment #Problem Set 0
#Michael
lastname = raw_input("What is your last name?")
firstname = raw_input("What is your first name?")
print firstname, lastname
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment #!/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:Essa foi fácil Osmar! Vamo que vamo. Precisando de ajuda para os próximos é só dizer. Abraço. 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
No comments. Sign up or log in to comment # 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)
No comments. Sign up or log in to comment 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)
No comments. Sign up or log in to comment
# 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
No comments. Sign up or log in to comment Assignment 1 lastName = raw_input("Whats your last name?")
firstName = raw_input ("Whats your first name?")
print firstName, lastName
No comments. Sign up or log in to comment last_name = raw_input('What is your last name?')
first_name = raw_input('What is your first name?')
print last_name
print first_name
No comments. Sign up or log in to comment Problem set Oprint ("Enter your first name:")
firstname = raw_input()
print ("Enter your last name:")
lastname = raw_input()
print firstname
print lastname
No comments. Sign up or log in to comment #!/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)
No comments. Sign up or log in to comment #!/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
No comments. Sign up or log in to comment No comments. Sign up or log in to comment Problem Set 0 - MIT 6.00 OpenCourseWarePython 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)
No comments. Sign up or log in to comment #Problem set 0
#Name : zizidorf
lastName = raw_input("Enter your last name ")
firstName = raw_input(" Enter your first name ")
print firstName, lastName
No comments. Sign up or log in to comment name gameby: Jesseprint "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 + "!")
No comments. Sign up or log in to comment # 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)
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment # 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 + ("!")
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment
# 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: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... #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
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment # Problem Set 0
# Name: Trefecta
userFirstName = raw_input("Enter your first name: ")
userLastName = raw_input("Enter your last name: ")
print userFirstName, userLastName
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment 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!"
No comments. Sign up or log in to comment #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)
No comments. Sign up or log in to comment lname = str(raw_input("What is your last name? "))
fname = str(raw_input("What is your first name? "))
print fname , lname
No comments. Sign up or log in to comment last_name = raw_input("What is your last name?")
first_name = raw_input("What is your first name?")
print first_name + " " + last_name
No comments. Sign up or log in to comment 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 +"!")
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment #montego
#lesson 1, Assignment 1
firstName = raw_input('What is your first name?')
lastName = raw_input('What is your last name?')
Print = firstName, lastName
No comments. Sign up or log in to comment
#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
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment lastName = raw_input("Enter your last name")
firstName = raw_input("Enter your first name")
print firstName, lastName
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
No comments. Sign up or log in to comment # Problem Set 0
firstname = raw_input ("Enter your first name: ")
lastname = raw_input ("Enter your last name: ")
print firstname, lastname
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment # 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)
No comments. Sign up or log in to comment Problem Set 0Name: Ben WhiteTime spent: 30 minutesProgram that asks user last and first name and then prints concat. of bothlastname = raw_input('What is your last name? ')
firstname = raw_input('What is your first name? ')
print firstname, lastname
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment 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)
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment #++++++++++++++++++++++++++++++++++++++++++++
# 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
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment lastname = raw_input('Enter your last name: ')
firstname = raw_input('Enter your first name: ')
print 'Your name is ' + firstname + ' ' + lastname
No comments. Sign up or log in to comment last = raw_input('Enter your last name: ')
first = raw_input('Enter your first name: ')
print first + ' ' + last
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment # 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)
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment Problem Set 0Name: Ricky SumartoTime: 10 minutesfname=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)
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment 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)
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment 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)
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment Problem 1. Write a program that does the following in order:
print ('Enter your last name: ')
lastname = raw_input()
print ('Enter your first name: ')
firstname = raw_input()
print (firstname + " " + lastname)
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment #
# 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!'
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment print lastname = raw_input("Last name?: ")
print firstname = raw_input("First?: ")
print (firstname, lastname)
No comments. Sign up or log in to comment lastName = raw_input('Enter your last name: ')
firstName = raw_input('Enter your first name: ')
name = firstName + '\n' + lastName
print name
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment #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
No comments. Sign up or log in to comment # 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+"!"
No comments. Sign up or log in to comment #Problem Set 0
#jayd
lastName = raw_input("Enter your last name:")
firstName = raw_input("Enter your first name:")
print firstName +" "+lastName
No comments. Sign up or log in to comment lastname = raw_input('Enter your last name: ')
firstname = raw_input('Enter your first name: ')
print firstname, lastname
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment last_name = raw_input('Last name? \n**')
first_name = raw_input('First name? \n**')
print first_name, last_name
No comments. Sign up or log in to comment # 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: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 :) #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)
No comments. Sign up or log in to comment #!
# 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, "!")
No comments. Sign up or log in to comment 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 + '!')
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment # 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)
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment print "Enter your last name" ln = raw_input() print "Enter your first name" fn = raw_input() print "Hello ",fn,ln No comments. Sign up or log in to comment fname = raw_input("Your first name?: ")
lname = raw_input("Your last name?: ")
print "Your name is ", fname, " ", lname
No comments. Sign up or log in to comment 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)
No comments. Sign up or log in to comment # 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
No comments. Sign up or log in to comment # 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)
No comments. Sign up or log in to comment 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 No comments. Sign up or log in to comment Problem Set 0Name: mad_casualCollaborators:N/ATime: 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
No comments. Sign up or log in to comment Assignment 1 #Slayer706
#Lesson 1, Assignment 1
lastName = raw_input("Enter your last name: ")
firstName = raw_input("Enter your first name: ")
print firstName, lastName
No comments. Sign up or log in to comment pset0 last = raw_input('Enter your last name:\n**')
first = raw_input('Enter your first name:\n**')
print first
print last
No comments. Sign up or log in to comment 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
No comments. Sign up or log in to comment 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:Looks like you reversed the first_name and last_name variables during input. First assignment for MIT 6.00 OpenCourseWareClass 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
No comments. Sign up or log in to comment |
No comments. Sign up or log in to comment