Re: Converting tuple to String
Is their a command to convert a tuple to string? e.g.
xyz = "Hello", "There"
print xyz
Is their any way of getting print to see xyz as being one string i.e.
"Hello There" rather than "Hello" and "There", despite "Hello" and
"There" being, in reality, seperate?
Try
one_big_string = ''.join( xyz )
print one_big_string
Hope this helps.
.
Relevant Pages
- Re: Read strings from one file and search for them in a directory containing htm files
... > XyZ technology helps make home networking simple. ... Now we're back to about my original suggestion, if there's no newlines ... while IFS= read -r string ... (comp.unix.shell) - Re: Help with shell script
... for the string 'abc', and puts the matching lineinto the variable xyz. ... in xyz to awk. ... ..which will print the second column from the /etc/passwd delimited by ':'s. ... (comp.unix.shell) - Re: Filtering a form using a combo and 2 dates
... open my Form that is based on "XYZ table/query" but only return ... the records that match this string. ... not have a field called "dateStart" ... "RentalAgreement" is between some values. ... (microsoft.public.access.forms) - Re: String To List
... list with elements 'xyz' and 'abc'. ... could the string module not use a ... string enclosed by delim (or which begin with delim and end with ... (odd number of delimiters, or opening/closing delims ... (comp.lang.python) - Re: How to extract a string starting with abc & ending with xyz ?
... But if the length of the string varies between 10 to 50* what ... You are only comparing the string with "abc xyz". ... The automatic assumption that all programs should write error messages ... (comp.lang.c) |
|