Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Using tuples or Re to replace 5 strings with one
Post: RE: Using tuples or Re to replace 5 strings with o...

Thanks
sem General Coding Help 6 4,377 Aug-24-2017, 12:16 PM
    Thread: Using tuples or Re to replace 5 strings with one
Post: RE: Using tuples or Re to replace 5 strings with o...

Yes, tuples would be great. I am trying this now (Aug-23-2017, 11:55 AM)Larz60+ Wrote: Sorry, yu said you needed tuples: slight modification: import json fruit = ("Apple", "Orange", "Banana", "Ma...
sem General Coding Help 6 4,377 Aug-23-2017, 12:04 PM
    Thread: Using tuples or Re to replace 5 strings with one
Post: RE: Using tuples or Re to replace 5 strings with o...

Thanks, but I think this is rather different than what I imagined. The script searches for strings in a file, what would be good to have here is that if the script finds ONLY the combination of "a...
sem General Coding Help 6 4,377 Aug-23-2017, 11:53 AM
    Thread: Using tuples or Re to replace 5 strings with one
Post: Using tuples or Re to replace 5 strings with one

Hi, I am trying to simplify a list of fruits in one file, by generalizing them to "fruit". However, I can only using regular tuples and re, replace one by one. Here I would need to replace 4 different...
sem General Coding Help 6 4,377 Aug-23-2017, 11:02 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020