Skip to content

Python command gives weird result! #1

@yahyasheikhnejad

Description

@yahyasheikhnejad

I know maybe my question is not relevant but please help!
print( os.path.isfile(os.getcwd()) )
gives False!
and
print(os.path.isfile('C:/Windows'))
print(os.path.isfile('C:\Windows'))
False
False
how could it be possible?
would you please help in this regards?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions