I am a beginner learning python . i am following the book "head first python ". In that in chapter of creating a webapp , i am facing a problem as i have install modules but as the step in book mentions the process to import the module
"vsearch " from "search4letters" .
But i am unable to find it as its showing module not find.
Book code
"vsearch " from "search4letters" .
But i am unable to find it as its showing module not find.
Book code
from flask import Flask
from vsearch import search4letters
app = Flask(__name__)
@app.route('/')
def hello() -> str:
return 'Hello world from Flask!'
@app.route('/search4')
def do_search() -> str:
return str(search4letters('life, the universe, and everything', 'eiru,!'))
app.run()my codefrom flask import Flask
from vsearch import search4letters
app = Flask(__name__)
@app.route('/')
def hello() -> str:
return 'hello world from flask dumbo !'
@app.route('/search4')
def do_search()->str :
return str('life the universe and evrthing','eiru/')
app.run()but still i am getting a error in importing the module.
