[Tutor] joining Indic and English Text

2017-06-25 Thread Evuraan
Greetings! I've a case where I need to put lines with both Indic and English Text to a file ( and optionally to stdout): # bash; ml_text="മലയാളം" en_text="Malayalam" echo "$ml_text = $en_text" >> /tmp/output.txt $ cat /tmp/output.txt മലയാളം = Malayalam That line above is what's I am trying to

Re: [Tutor] how-to generate specific lines of text from two python lists

2017-06-25 Thread Danny Yoo
On Jun 25, 2017 12:05 PM, "Danny Yoo" wrote: As the other tutors have suggested, look into doing the SQL updates directly, rather than format strings of SQL commands. Ah, here's a good resource: http://bobby-tables.com Just to emphasize: the reason I'm pointing this out is to try to counterba

Re: [Tutor] how-to generate specific lines of text from two python lists

2017-06-25 Thread Danny Yoo
As the other tutors have suggested, look into doing the SQL updates directly, rather than format strings of SQL commands. A major reason is because strings do not natively support the representation of nested, grammatical things like sentences or SQL commands. It's really easy to write a string f

Re: [Tutor] how-to generate specific lines of text from two python lists

2017-06-25 Thread Tahir Hafiz
Thanks Alan and Peter, Alan you are right this could be solved via an SQL statement but I was asked to finish the python script. Anyways, this worked and helped to solve the problem in the end: # Create iterator object, dictionary which can be used to iterate against. b_iter = iter(new_emails)