On 9-10-2016 20:56, Risat Haque wrote:
> Hey, i have a data base filled with numbers from a recent drone flight. IT
> contains, alt, long, lat, and time.
> In python, i want to ask the user to put in a time :
> askTime = (input("Choose a time (HourMinSec):"))
>
> With this, I need it to search through the entire data base to find that
> number.
>
> ("UTC: 8:58:24 lat: 50.97 long: -114.05 Alt: 1047.40m SOG: 1.04 km/h")
>
> EX:
>
> Choose a time (HourMinSec): 8:58:24
> Data: UTC: 8:58:24 lat: 50.97 long: -114.05 Alt: 1047.40m SOG: 1.04 km/h"
>
> How can I do this?
>
What is your 'database'?
>From the little information you provided it seems that it is just a text file
>where
every drone measurement is on a line. So simply read every line and check if
the time
entered is in that line, then print it.
Irmen
--
https://mail.python.org/mailman/listinfo/python-list