Recent Activity on Curious Reef:

Subscribe to the activity stream RSS Feed

Topic: countSubStringMatch and countSubStringMatchRecursive Problem Set 3

in MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming

Hi

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.

fhalo
3 days ago

Homework: Lesson 3, HW 1

in 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 ...
mgoff11
5 days ago

Homework: Lesson 1, HW 1

in MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming

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 
delete
6 days ago

Homework: Lesson 3, HW 2

in Learning Vim from the inside
lid --key=token '^mail' vim/
shobhitjain
1 week ago

Homework: Lesson 1, HW 1

in MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming

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 ...

>>> 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 ...
cbonturi
2 weeks ago

Homework Comment: Samcan's Homework

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

raw_input ()

cbonturi
2 weeks ago

Homework: Lesson 1, HW 1

in MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming

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)

Samcan
4 weeks ago

Homework: Lesson 1, HW 1

in MIT OpenCourseWare 6.00 Introduction to Computer Science and Programming

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

mcdermott1985
1 month ago

Reply: Using Xcode 4 on a Mac

in the Programming in C Forum

I 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 ...

overzet
1 month ago

Topic: Using Xcode 4 on a Mac

in Programming in C

Getting help to get started

overzet
1 month ago