Writing a redirector

Report a typo

Write a program that gets a URL from input and uses it as the target address for redirecting from the /just/redirect/me page.

Sample Input 1:

/out/of/breach

Sample Output 1:

correct
Write a program in Python 3
from flask import Flask, redirect

app = Flask('main')

url = # your code here

@app.route('INSERT URL HERE')
def view_function():
return "Haha! I'm out of reach!"

@app.route('/just/redirect/me')
def redirector_func():
pass # insert your code here to redirect
___

Create a free account to access the full topic