I'm really new to python so I'm hoping for some serious help.
I have an application that is taking in users inputs from a text box. I need to create a python script that takes in this user sting and formats it.
The user string will look like the following examples:
999-99-999
999-99-999 or 999-99-998
999-99-999 or 999-99-998 or 999-99-997
999-99-999 or 999-99-998 or 999-99-997 or 999-99-996
and so on there could be more values separator by the or operator
So basically I would like to develop a python script that changes the value format to something like:
"APN" = '999-99-999'
"APN" = '999-99-999' or "APN" = '999-99-998'
"APN" = '999-99-999' or "APN" = '999-99-998' or "APN" = '999-99-997'
"APN" = '999-99-999' or "APN" = '999-99-998' or "APN" = '999-99-997' or "APN" = '999-99-996'
and so on
WOuld someone be kind enough to tell me how I can accomplish this.
Thanks
I have an application that is taking in users inputs from a text box. I need to create a python script that takes in this user sting and formats it.
The user string will look like the following examples:
999-99-999
999-99-999 or 999-99-998
999-99-999 or 999-99-998 or 999-99-997
999-99-999 or 999-99-998 or 999-99-997 or 999-99-996
and so on there could be more values separator by the or operator
So basically I would like to develop a python script that changes the value format to something like:
"APN" = '999-99-999'
"APN" = '999-99-999' or "APN" = '999-99-998'
"APN" = '999-99-999' or "APN" = '999-99-998' or "APN" = '999-99-997'
"APN" = '999-99-999' or "APN" = '999-99-998' or "APN" = '999-99-997' or "APN" = '999-99-996'
and so on
WOuld someone be kind enough to tell me how I can accomplish this.
Thanks
Comment