5 Tutorial Python - Coding Style

Опубликовано: 17 Октябрь 2024
на канале: Ahmad Syarif
1,950
31

in this tutorial, I will explain about how to write a python script, especially about indentation and semicolon which are not used in python

basically, in python, there is no semicolon. each line are separated by newline or enter. so we don't need to write a semicolon at the end of every line anymore

indentation itself is used to replace curly bracket in other programming language (C, C++, Java). commands that are inside the bracket will be written with one indentation to in python

here are some useful links about this topic
http://www.python-course.eu/python3_b...
https://www.python.org/dev/peps/pep-0...