I wrote a web app in 2021 called Lotto Number Generator. You can visit it here. This post explains my inspiration behind the app and what language it’s written in.
My Inspiration For Lotto Number Generator
When I learn a new language I like to make projects so I can use the concepts I learn. That was one of the major reasons I created Lotto Number Generator. The other reason is that my mom loves to play the Georgia Lottery and I wrote her a program in a long, long time ago. That program ran locally on her computer. This time I wanted to create a website she could use anywhere, including her phone.
Programming Languages Used In The Site
@app.route("/") def index(): """ :return: This function loads the index.html page. """ return render_template("index.html") @app.route("/games/cash_three.html", methods=["GET", "POST"]) def cash_three_game(): """ :return: This function returns the three random numbers to be displayed on the Cash 3/Pick 3 page. """ num1, num2, num3 = cash_three() return render_template("/games/cash_three.html", num1=num1, num2=num2, num3=num3) @app.route("/games/cash_four.html", methods=["GET", "POST"]) def cash_four_game(): """ :return: This function returns the four random numbers to be displayed on the Cash 4/Pick 4 page. """ num1, num2, num3, num4 = cash_four() return render_template("/games/cash_four.html", num1=num1, num2=num2, num3=num3, num4=num4) @app.route("/games/fantasy_five.html", methods=["GET", "POST"]) def fantasy_five_game(): """ :return: This function returns the five random numbers to be displayed on the Fantasy 5 page. """ num1, num2, num3, num4, num5 = fantasy_five() return render_template("/games/fantasy_five.html", num1=num1, num2=num2, num3=num3, num4=num4, num5=num5)