[Tutor] operate on files based on comparing filenames to today's date

2019-03-28 Thread Matthew Herzog
I have cobbled together this code which gives me regex matches of files whose names either begin with either MMDD_? or erased_YYMMDD_? and whose extensions are exml or ewav. Now I need to compare the date string (regex match) in the filename to today's date. If the result of the comparison resu

Re: [Tutor] operate on files based on comparing filenames to today's date

2019-03-28 Thread Cameron Simpson
Before getting to your specific question, a few remarks below: On 28Mar2019 12:08, Matthew Herzog wrote: I have cobbled together this code which gives me regex matches of files whose names either begin with either MMDD_? or erased_YYMMDD_? and whose extensions are exml or ewav. todaystri

[Tutor] Help with code

2019-03-28 Thread lucasbreault2400
I’m trying to make a password that must contain a number in it. Which method do I use for that? Sent from my iPhone ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with code

2019-03-28 Thread Alan Gauld via Tutor
On 28/03/2019 21:12, lucasbreault2...@gmail.com wrote: > I’m trying to make a password that must contain a number in it. I assume you mean you want to check whether a password has a number in it? Does it need to be a single digit or can there be multiple? > Which method do I use for that? There

[Tutor] cant get it to run right

2019-03-28 Thread Sveum, Christian
I am new and I have tried everything I can think I of. I want it to run like a converstion. print(" I am Bob") name = input("What is your name") print("Nice to meet you") age = input("How old are you?") print("I was not programed with a age") city = input("Where do you live?") temperature = f

Re: [Tutor] cant get it to run right

2019-03-28 Thread DL Neil
On 29/03/19 12:55 PM, Sveum, Christian wrote: I am new and I have tried everything I can think I of. I want it to run like a converstion. print(" I am Bob") ... What is not working? How far does the program run before stopping? What error message are you seeing? (why won't you share it with us

Re: [Tutor] cant get it to run right

2019-03-28 Thread Alan Gauld via Tutor
On 28/03/2019 23:55, Sveum, Christian wrote: > I am new and I have tried everything I can think I of. I want it to run like > a converstion. Its always good to be as specific as possible. What exactly do you mean by "can't get it to run right"? Does it crash? Do you get an error message? If so se