I'm trying to develop a maco in python. I need a method that changes the URI given in the input variables.
For instance, in www.(variable).com I need to change the URL www.1.com to www.2.com
www.(variable).com
www.1.com
www.2.com
You can use formatted strings like this:
variable = 1 url = f"www.{variable}.com"
1.4m articles
1.4m replys
5 comments
57.0k users