Answer the question
In order to leave comments, you need to log in
Hello, how to convert a string to a tuple for writing in sql (more precisely, updating a column through the Update method)?
Line example:
Hello world:)_!
Expected result:
(Hello world:)_!)
Answer the question
In order to leave comments, you need to log in
I would do like this:
my_str = 'Hello world:)_!'
print(tuple(my_str.split(',')))
print(''.join(my_str))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question