[Tutor] checking connection to internet until success

2018-01-02 Thread Pi
Hi Tutor, with this code i am getting actual date from internet. I need correct date, because i am not sure this set on computer is right. import requests, time try:     OnLineDate = requests.get("http://just-the-time.appspot.com";).text[:10]     OffLineDate = time.strftime("%Y-%m-%d")    

[Tutor] os.walk() with multiple paths

2018-05-22 Thread Pi
Hello Tutor, I'm stuck and i really need help. Google and I can't find answer for my problem. I've wrote app searching through directories database files. It works fine, but only for one path. And I need to use more than one path. This is my code: import os files = [] def find_db(paths):

[Tutor] looking for a Python feature for computer teaching

2014-12-14 Thread Pi Po
As a teacher I find python simple and effective. However, appreciate feedback from anyone who knows of a Python version with this feature: Want each interpreted line of code to introduce as a cells on a spreadsheet window each new variable (or array) with its initialized value, and show the updat