Relative Content

Tag Archive for python

Saving Emails from Outlook

With the help of ChatGPT I wrote a code that saves all active Emails from Outlook to a folder with the date and subject of the Email. Working pretty good except some fails I can’t explain.
The code saves the Email and the folder and then puts the Email into the folder.

Saving Emails from Outlook

With the help of ChatGPT I wrote a code that saves all active Emails from Outlook to a folder with the date and subject of the Email. Working pretty good except some fails I can’t explain.
The code saves the Email and the folder and then puts the Email into the folder.

how can I make a dictionary using regex?

I’m new to python and I have some regex pattern for making a key set of dictionary.
ex) [a-z] : abc…xyz (the actual pattern is more complex)
and i want a dictionary with some values. let’s say it is just range(1, 27)
so the result i want is
{“a”: 1, “b”: 2, …, “y”:25, “z”:26}