4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

Welcome to the interactive Python tutorial#2(Hello, World!)

Python-Tutorial-–-Part-2.png

Hello, World!


Python may be a terribly easy language, and contains a terribly simple syntax. It encourages programmers to program while not boilerplate (prepared) code. the best directive in Python is that the print directive - it merely prints out a line (and conjointly includes a newline, in contrast to in C).

There are 2 major Python versions, Python a pair of and Python three. Python a pair of and three ar quite totally different. This tutorial uses Python three, as a result of it a lot of semantically correct and supports newer options.

For example, one distinction between Python a pair of and three is that the print statement. In Python a pair of, the print statement isn't a perform, and so it's invoked while not parentheses. However, in Python three, it's a perform, and should be invoked with parentheses.

To print a string in Python three, simply write:

Screenshot_2018-09-03 Hello, World - Learn Python - Free Interactive Python Tutorial.png

Indentation

Python uses indentation for blocks, rather than kinky braces. each tabs and areas ar supported, however commonplace|the quality} indentation needs standard Python code to use four areas. For example:
Screenshot_2018-09-03 Hello, World - Learn Python - Free Interactive Python Tutorial(1).png

2 upvotes $0.00

Replies (2)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: