« first day (1921 days earlier)      last day (1657 days later) » 

1 message moved from Python
 
8 hours later…
18:43
I have a doubt, i can´t return this functions ``` @app.route("/")
def Landing():
return render_template("Landing_Page.html")

def footer():
footerdb = open("footer.txt")
for i in range (3):
footerdb.write("footer.txt" + " by Carlos Teixeira")
footerdb.close()
return render_template("Landing_Page.html", footerdb) ```
@app.route("/index.html/")
def Home():
current_time = datetime.datetime.now()
return render_template("/index.html/", current_time=current_time)
Here´s the HTML: ``` <p class="footer">Current Date and Time: {{ current_time }}</p> <a target="blank"></a></p>
<p class="footer">footer()</p> <a target="blank"></a></p>
4 messages moved from Python
 
5 hours later…
23:14
hello friends,
Short question:
How can I code in python a lot of while conditions in one shot way.
I tried this code but it doesn't work as expected.
`````
while Rechenart != ("+" or "-" or "*" or "/"):
print("Bitte Ihre Eingabe überprüfen")
Eingabe()
````
1 message moved from Python

« first day (1921 days earlier)      last day (1657 days later) »