#!/usr/bin/python3
"""Task 3"""
from flask import Flask

app = Flask(__name__)


@app.route('/', strict_slashes=False)
def Index():
    """Function index"""
    return 'Hello HBNB!'


@app.route('/hbnb', strict_slashes=False)
def Hbnb():
    """Function hbnb"""
    return 'HBNB'


@app.route('/c/<text>', strict_slashes=False)
def show_c(text):
    """Function show text"""
    text_replace = text.replace("_", " ")
    return 'C ' + str(text_replace)


@app.route('/python', strict_slashes=False)
@app.route('/python/<text>', strict_slashes=False)
def show_python(text='is_cool'):
    """Function show python"""
    text_replace = text.replace("_", " ")
    return 'Python ' + str(text_replace)


if __name__ == "__main__":
    app.run(host='0.0.0.0', port=5000)
