10-16-2009, 06:32 PM
How would can you put this code to use?
There is the code, but im thinking, why not just
So how would it be useful?
Code:
x = "luck"
#replace the l in in luck with a d
y = x.replace("l", "d")
#Displays what y is equal to on the screen
print y
Code:
print "duck"