Posts: 100
Threads: 21
Joined: Oct 2009
Reputation:
2
maybe if you could describe where it came from. etc.. i could prob help.
Posts: 401
Threads: 141
Joined: Oct 2009
Reputation:
5
It didnt come from anywhere. To be more specific how does x.replace come in use
Posts: 106
Threads: 10
Joined: Oct 2009
Reputation:
3
Im a noob in python, but maybe a text encrypter, you could set it if there is an a then make it a c. Like this -
text = raw_input()
text = text.replace("a", "1")
text = text.replace("b", "2")
/There may be an easier way to do that but keep going a - z
print "Encrypted text is " text
/Now just reverse that so they can decrypt text.
I dont know if this helped or how well this will work but it is just a suggestion.
Posts: 66
Threads: 3
Joined: Oct 2009
Reputation:
0
The replace code can be used to scramble words if you do not want others to understand some words.. In other words, to hide the real message.. using print = "duck" is of no use if the user sees the source code and not just the viewable program..
Posts: 103
Threads: 7
Joined: Oct 2009
Reputation:
5
to replace certain characters in an unkown variable, not everything is staticaly typed
Terrorcore, unleash, extermination
Hyper real, cold blood, determination
fudge them, I like this sensation
Incredible, I from the annihilation