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

Pages: 1-

Please assist me with learning python

Name: Anonymous 2011-01-23 1:05

all i need is a simple python script that allows a user to enter a string, then takes each character in the strign, and converts it do predefined variables.

For example, i tell the program that a = 01 and b = 02
and if the user types in ab, he gets returned 0102.

this shouldent be to hard. Its for a new encryption cypher i developed.

Name: Anonymous 2011-01-23 1:06

i am bumping this. i really need help.

Name: Anonymous 2011-01-23 1:06

op is fag

Name: hello kitty 2011-01-23 1:07

you can simply acheive this by programming something to print out predifined variables.

Name: Anonymous 2011-01-23 1:07

@hello kitty

read the damn post...

Name: Anonymous 2011-01-23 2:40

%variables=qw;a 01 b 02;;
s/(.)/$variables{$1}/g,print while<>

Name: Anonymous 2011-01-23 2:44

Wait did you really bump the thread a minute after you created it?

Name: Anonymous 2011-01-23 3:33

>>6
awesome choice of delimiter

Name: Anonymous 2011-01-23 6:51

>>7
He might be an imageboards faggot.

Name: Anonymous 2011-01-23 7:43

Will there be any limit on the input?
ie; only lowercase letters or anything.

Name: Anonymous 2011-01-23 8:11

admin(a)dollarwebhost.net

Name: Anonymous 2011-01-23 8:39

I didn't read that this is a python thread before.

ONE WORD: THE FORCED ONE-LINERIZATION OF LAMBDA. THREAD OVER

Name: Anonymous 2011-01-23 8:48

>encryption
>replace letters with numbers

Name: Anonymous 2011-01-23 8:50

>innovation...
>replace scientists with artists...

Name: Anonymous 2011-01-23 8:52

>sage
>...

Name: Anonymous 2011-01-23 9:43

cipher = lambda str: ''.join(map(lambda c: globals()[c], str))

Name: Anonymous 2011-01-23 10:18

>green
>text

Name: Anonymous 2011-01-23 10:20

`>green
>text
>my
>anus!

Name: Anonymous 2011-02-04 14:25

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