Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

python learners course day 1

Name: i help teach u py 2011-05-09 23:52

Hi i am a new programer and i wnt to help my fellow programer to learn with me thru me experience here is some tips for pythonista out there :)))

u can do like if i in range(n): and then have simple repeater that way like u can use a print statement and then u can do like %s % stuff to put other stuff in the percent s nd then u can also do soethin cool like {0} and {1} % for multiples and then u can also do like cool stuff with dictionaries somethin cool i lrnt is u can do sometthin like dict.get(value)to get a dictionary value and then assign it if u wnt and then u can also do if soething == 'blah' and then have somethin happen and u can also do like random.randint(3, 34) or random.choice aor u can even do all this other stuff


ff hacking is righteous!

Name: Anonymous 2011-05-10 0:14

Name: Waka Flocka 2011-05-10 0:55

I GO HARD IN THE MOTHERFUCKING PAINT NIGGA

Name: Anonymous 2011-05-10 1:50


#!/usr/bin/python
class m:
 def __init__(self):
  q=12000
  x=0
  while True:
    x+=1
    y=x%x*2
    z=x+y
    qp='                     '+str(q)
    if x % 1000 == 0:
     q=q-x
    qp=qp+'    '+qp.replace('3','three')
    print x,y,z,'                  ',x,z,y,'              ',z,qp
 
if __name__=="__main__":
 m1=m()

Name: Anonymous 2011-05-10 1:51

>>1 Your [i][b]challenge[b][i], is to make that a one-liner.

Name: Anonymous 2011-05-10 2:07

>>5
Your challenge is to make that BBCode compile.

Don't change these.
Name: Email:
Entire Thread Thread List