◂ Previous |
---|
A simple python hello world script. This example creates a Python script that prints "Hello World".
- Python - >=3.5
- Visual Studio Code
- macOS Catalina - Version 10.15.3
- Python - Version 3.7.6
Create a src/helloworld.py
with the following code:
#!/usr/local/bin/python3
import datetime
now = datetime.datetime.now()
print("{now} Hello World! from Python.".format(now=now))
Open Terminal run the following command:
cd src
python helloworld.py
Next ▸ |
---|