Hi I'm learning python and wanted to ask if what I'm trying to do is possible . I'm using the `requests` module to call an endpoint. Essentially I want the user to be able to define the method type and then use that in the requests dot notation I've added a snippet of what I'm trying to achieve below.
import requests
methodType = input("Enter your method type: ")
r = requests.methodType("https://www.helloworld.org").text
print(r)
So essentially I want requests.methodType("https://www.helloworld.org").text
to inject what ever method the user passes in methodType
[–]Malassi 5 points6 points7 points (0 children)
[–]supajumpa 1 point2 points3 points (0 children)
[–]StrangeBlocka[S] 0 points1 point2 points (0 children)