Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Installing Modules
Post: RE: Installing Modules

OK Folkes, been doing some surfing and found this bit of code. Added my own with statement and come up with this.... path = r"My Path" path2 = r"My Path 2 with the file name of test2.text" for child ...
PythonBorg General Coding Help 10 2,168 Sep-03-2022, 09:58 AM
    Thread: Made my First function.
Post: RE: Made my First function.

(Aug-29-2022, 05:55 AM)ndc85430 Wrote: Why the single letter variable names? Why the magic number of 5000? Single Letter names keeps it nice and Simple..... 5000 keeps it rolling of the screen, a...
PythonBorg Code Review 7 3,052 Sep-03-2022, 08:44 AM
    Thread: Installing Modules
Post: RE: Installing Modules

(Aug-30-2022, 11:51 AM)snippsat Wrote: (Aug-30-2022, 05:36 AM)PythonBorg Wrote: path = r"c:\test" contents = Path(path).glob("*.md") for i in contents: print(i,"\n")I like to print, so that i can ...
PythonBorg General Coding Help 10 2,168 Aug-30-2022, 10:42 PM
    Thread: Installing Modules
Post: RE: Installing Modules

(Aug-30-2022, 05:08 AM)snippsat Wrote: (Aug-30-2022, 04:30 AM)PythonBorg Wrote: how do i print of the list, all i get is a <generator object Path.glob at xxxxxxfrom pathlib import Path dest = ...
PythonBorg General Coding Help 10 2,168 Aug-30-2022, 05:36 AM
    Thread: Installing Modules
Post: RE: Installing Modules

(Aug-29-2022, 03:02 PM)deanhystad Wrote: You do not need to put the contents of a directory into a list. Python already provides a way to iterate through a directory, or walk through a directory tr...
PythonBorg General Coding Help 10 2,168 Aug-30-2022, 04:30 AM
    Thread: Installing Modules
Post: RE: Installing Modules

Have a whole directory of markdown files. If I put the contents of the dir into a list , I could iterate thou the list...yes. That is the next Project to work thou. **idea**
PythonBorg General Coding Help 10 2,168 Aug-29-2022, 09:39 AM
    Thread: Installing Modules
Post: RE: Installing Modules

It is now working. did a bit of searching online and on my pc disk. Found out where the Markdown was installed and added a path to it. Also reinstalled it via PyCharm and it is now working. **biggri...
PythonBorg General Coding Help 10 2,168 Aug-29-2022, 09:33 AM
    Thread: Installing Modules
Post: Installing Modules

Hi There, Have installed the Markdown module into Python3 using PIP. it install without a problem... but when i try to use it, Python does not recognise it. Have some markdown files that i would li...
PythonBorg General Coding Help 10 2,168 Aug-29-2022, 08:52 AM
    Thread: Made my First function.
Post: Made my First function.

def my_fibonacci(): p = 0 c = 1 result = (p + c) print(result,"",end = "") while result < 5000: p = c c = result result = p + c print(result,"",end = "") my_fibonacci()Hello everyb...
PythonBorg Code Review 7 3,052 Aug-28-2022, 10:33 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020