Write a program that gets a URL from input and uses it as the target address for redirecting from the /just/redirect/me page.
Advanced responses
Writing a redirector
Report a typo
Sample Input 1:
/out/of/breachSample Output 1:
correctWrite 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
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.