Skip to content

ameyrupji-k8s/python-helloworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

◂ Previous

python-helloworld

A simple python hello world script. This example creates a Python script that prints "Hello World".

Prerequisites

  • Python - >=3.5
  • Visual Studio Code

System Configuration at time of test

  • macOS Catalina - Version 10.15.3
  • Python - Version 3.7.6

Initial Setup

Code

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))

Test

Open Terminal run the following command:

cd src
python helloworld.py

terminal-run-python-helloworld

Useful Links

Next ▸

About

A simple python hello world script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages