#uses the requests library 
import requests

payload = {'token': 'cac21dc164e91217722bb4a3da2320f4'}

#run a simple http post requests to the first endpoint to receive our string to reverse
r1 = requests.post("http://challenge.code2040.org/api/reverse", data=payload)

#reverse the string using extended slice syntax, and using a reverse slice. 
reversedStr = r1.text[::-1]

#add the new key value pair to our dictionary for the validation request
payload['string'] = reversedStr

#execute the validation request
r2 = requests.post("http://challenge.code2040.org/api/reverse/validate", data=payload)

58e2fb3696c9347fc4c843c5fad59dd31db3131d
<mask token>

<mask token>
payload = {'token': 'cac21dc164e91217722bb4a3da2320f4'}
r1 = requests.post('http://challenge.code2040.org/api/reverse', data=payload)
reversedStr = r1.text[::-1]
payload['string'] = reversedStr
r2 = requests.post('http://challenge.code2040.org/api/reverse/validate',
    data=payload)

import requests
payload = {'token': 'cac21dc164e91217722bb4a3da2320f4'}
r1 = requests.post('http://challenge.code2040.org/api/reverse', data=payload)
reversedStr = r1.text[::-1]
payload['string'] = reversedStr
r2 = requests.post('http://challenge.code2040.org/api/reverse/validate',
    data=payload)

#uses the requests library 
import requests

payload = {'token': 'cac21dc164e91217722bb4a3da2320f4'}

#run a simple http post requests to the first endpoint to receive our string to reverse
r1 = requests.post("http://challenge.code2040.org/api/reverse", data=payload)

#reverse the string using extended slice syntax, and using a reverse slice. 
reversedStr = r1.text[::-1]

#add the new key value pair to our dictionary for the validation request
payload['string'] = reversedStr

#execute the validation request
r2 = requests.post("http://challenge.code2040.org/api/reverse/validate", data=payload)
