Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The first step in learning any programming language is often to print "Hello World!" This tradition helps you understand the language's basic syntax and structure. In Python, this is done using the print() function.

License

Notifications You must be signed in to change notification settings

Alex-Sayihalem/Python-Helloworld

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello, World

A simple program, and an example of how to structure a python project. Demonstrates a basic package file structure (using flat layout) and a way to define a single package version shared between package metadata and program runtime.

See also: the Python Packaging User Guide at https://packaging.python.org/ offers more complete examples and explanations.

Basic usage

You can install the package using pip and then run the main script from the command line as helloworld_in_python or import it in python via import helloworld:

$ cd python-helloworld/  # Dir containing this repo's root
$ pip install .
$ helloworld_in_python
Hello, world
$ helloworld_in_python --version
helloworld 0.1
$ python
>>> import helloworld
>>> helloworld.__version__
'0.1'

You can also try it without installing by running python helloworld.py in the repository root:

$ python helloworld.py
Hello, world
$ python helloworld.py --version
helloworld 0.1

About

The first step in learning any programming language is often to print "Hello World!" This tradition helps you understand the language's basic syntax and structure. In Python, this is done using the print() function.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%