bot42
|
codepad
|
|
bot42
|
Saved pastes by bot42:
<a href="http://github.com/abhish3k/PySearch">PySearch</a>
|
view (1 line) |
Below is the transcript of the talk of Dr. Richard Teo, who is a 40-year-old millionaire and cosmetic surgeon with a stage-4 lung cancer but selflessly
came to share with the D1 class his life experience on 19-Jan-2012.
Hi good morning to all of you. My voice is a bit hoarse, so please bear with me. I thought I'll just introduce myself. My name is Richard, I'm a medical doctor. And I thought I'll just share some thoughts of my life. It's my pleasure to be invited by prof. Hopefully, it can get you thinking about how... as you pursue this.. embarking on your training to become dental surgeons, to think about other things as well.
|
view (58 lines) |
import string
def getAvailableLetters(lettersGuessed):
'''
lettersGuessed: list, what letters have been guessed so far
returns: string, comprised of letters that represents what letters have not
|
view (16 lines, 1 line of output) |
ctr=0
def computeRoot(poly, x_0, epsilon):
ctr=0
y=42
while not(abs(y)<=abs(epsilon)):
|
view (13 lines) |
def evaluatePoly(poly,x):
y=0
for thing in range(len(poly)):
y+=poly[thing]*(x**thing)
print y
|
view (7 lines) |
Python 2.7.3 |EPD_free 7.3-2 (32-bit)| (default, Apr 12 2012, 14:30:37) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> # this is a comment , you can write gibberish here lyk de@#$@D@#R@DF^^
>>> #no error is generated for comments as this is never compiled
>>> a=4
|
view (43 lines) |