Subscribe to the activity stream RSS Feed
Topic: countSubStringMatch and countSubStringMatchRecursive Problem Set 3in MIT OpenCourseWare 6.00 Introduction to Computer Science and ProgrammingHi Could someone expand on what is asking for? To me both functions are the same. Both use a loop and return number of found string. |
Homework: Lesson 3, HW 1in MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming#Problem Set 2a
#Michael
a=6
b=9
c=20
candidate=0
bestSoFar=1
for n in range(1,50):
for i in range(0,n/a+1):
for j in range(0,n/b+1):
for k in range ...
|
Homework: Lesson 1, HW 1in MIT OpenCourseWare 6.00 Introduction to Computer Science and ProgrammingAsks 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
|
Homework: Lesson 1, HW 1in MIT OpenCourseWare 6.00 Introduction to Computer Science and ProgrammingWiki 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 ...
|
Homework Comment: Samcan's HomeworkHello, I think that to ask the user to write something, you have to write: raw_input () |
Homework: Lesson 1, HW 1in MIT OpenCourseWare 6.00 Introduction to Computer Science and ProgrammingProblem Set 0Name: SamcanCollaborators: 0Time: 30 minutesprint ('Enter your last name')
lastname = ('')
print ('Enter your first name')
firstname = ('')
print ('Hello ' + firstname, lastname)
|
Homework: Lesson 1, HW 1in MIT OpenCourseWare 6.00 Introduction to Computer Science and ProgrammingAssignment 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 |
Reply: Using Xcode 4 on a Macin the Programming in C ForumI started this topic because I have trouble getting started with Xcode. My first program Failed: The error is: clang: error: linker command failed with exit code 1 (use -v to see invocation) And as you might have guessed I ... |