SRL Archive - Python/Perl Help and Tutorials

New section


Daniel

2010-04-15 09:01:46

omfg! a new section!

From: @IRC

yakman: hey Wizzup make a python section in the programming board
Wizzup: yakman: yeah, we'll make one
Wizzup: I'll make one now.


Anyways, this is for Python scripts and Python script related questions / information. Hopefully it'll be more active than the current state of the other sub-categories of the "Programming" category.

Yakman

2010-04-15 11:21:39

actually that conversation went like this.

From: @IRC

<yakman> hey Wizzup make a python section in the programming board
<yakman> or rename Java to Java and Python
<Wizzup> yakman, lol @ last
<Wizzup> yakman: yeah, we'll make one
<Wizzup> I'll make one now.
<yakman> since i still have mod powers, ill move some threads from the geneal section



This section is because the interest in python has gone viral in this forum… EVERYONE's doing it (on irc at least)

Dan Cardin

2010-04-15 21:48:13

Are you kidding? No one is!

Sir R. M8gic1an

2010-04-15 21:52:48

Maybe people will start using it more around the forums too……. :)

~RM

i luffs yeww

2010-04-15 22:25:12

:D YAY! ^^ I <3 Python from what I've been doing.

Awkwardsaw

2010-04-15 22:30:30

i like it as a programming language, but i have no idea what to do with it :(

Yakman

2010-04-16 12:01:19

I was planning to write something that generated mandlebrot sets like this


if someone wants to steal my idea….

Wizzup?

2010-04-16 12:23:40

From: Yakman
I was planning to write something that generated mandlebrot sets like this


if someone wants to steal my idea….


I think there's a Python ascii-Mandelbrot generator in one line…


# Mandelbrot set
print (lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+y,map(lambda y,
Iu=Iu,Io=Io,Ru=Ru,Ro=Ro,Sy=Sy,L=lambda yc,Iu=Iu,Io=Io,Ru=Ru,Ro=Ro,i=IM,
Sx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,
i=i,Sx=Sx,F=lambda xc,yc,x,y,k,f=lambda xc,yc,x,y,k,f:(k<=0)or (x*x+y*y
>=4.0) or 1+f(xc,yc,x*x-y*y+xc,2.0*x*y+yc,k-1,f):f(xc,yc,x,y,k,f):chr(
64+F(Ru+x*(Ro-Ru)/Sx,yc,0,0,i)),range(Sx))):L(Iu+y*(Io-Iu)/Sy),range(Sy
))))(-2.1, 0.7, -1.2, 1.2, 30, 80, 24)
# \___ ___/ \___ ___/ | | |__ lines on screen
# V V | |______ columns on screen
# | | |__________ maximum of "iterations"
# | |_________________ range on y axis
# |____________________________ range on x axis

i luffs yeww

2010-04-16 18:09:50

I'm more just reading tutorials to start with. I don't wanna dive into that stuff so early. ;< But thanks a ton for them! ^^

Bionicle

2010-04-16 19:23:50

From: Yakman
I was planning to write something that generated mandlebrot sets like this


if someone wants to steal my idea….


i literally stared at this for half an hour O_o