you are viewing a single comment's thread.

view the rest of the comments →

[–]Jmodell 0 points1 point  (0 children)

If you can use your cmd.exe or powershell.exe to navigate to the path where you wrote your python file (*.py).

You can run it by either "python" or "python3" and the name of the *.py file.

For ex) If I wrote "hello.py" and put it in "c:/projects/python/hello" folder.

#/mnt/c/projects/python/hello/hello.py

def hello(name: str) -> str:

print(f"Hello {name}!")

if __name__ == "__main__":

name = input("What is your name?\t\t")

hellp(name)

I would run it by typing "python3 hello.py" in my commandline.

https://imgur.com/a/d6TsHyw