The string is represented as given below:
str = '1,1'
which is changed to tuple like given below:
p = ('1,1',)
I need something like the representation that is given below:
(1,1)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you mean something like this?
This causes the tuple elements to be integers which is what it seems like you want.
If you want the tuple elements to be strings, something like this should work:
If your string actually contains quote characters in it, you can remove them
s=s.replace("'")…