Raw Input Question

hokiegal99 hokiegal99 at hotmail.com
Tue Aug 26 22:33:36 EDT 2003


How can I pass the content of one varible into raw_input? See below for 
what I'm trying to do:

XXX = raw_input("1. Enter the string that you'd like to find: ")
y = raw_input("2. Enter the string that you'd like to replace XXX with: ")

I'm trying to pass x into y. I tried the "Enter the string that you'd 
like to replace", XXX, "with:" approach, but Pyhton told me that I could 
only pass 1 argument, no more.

Thanks!!!





More information about the Python-list mailing list