[Tutor] user in put

Latasha Marks pacbaby27 at yahoo.com
Mon Aug 27 20:02:59 CEST 2007


Need help get a user to in put his or her favortie food the the program should the n print oue the name of the new food by joining the original food names together
   
  code:
  favortie_food= raw_input("What is your favortie food?")
What is your favortie food?   hot dog
>>> print favortie_food
   hot dog
>>> favortie_food= raw_input("What is your favortie food?")
What is your favortie food? pizza
>>> print  favortie_food.replace("hot dog", "pizza)
        
SyntaxError: EOL while scanning single-quoted string
>>> print  favortie_food.replace("hot dog", "pizza")
 pizza

       
---------------------------------
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070827/00769b36/attachment.htm 


More information about the Tutor mailing list