Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 21, 2022 05:12 pm GMT

introduction to python

python

python is a high level programming language meaning it can be easily understood by humans.
python extension is .py
python environment is a space where you write your python code.examples visual studio,google colab.
features of python include
easy to learn
simple
fuctions:keywords that perform specific tasks example;
1)print functionprint("welcome")-this displays the text in quotes that is welcome.other examples of functons are ;input
identifiers: names used to name variables;RULES-must not be keywords, digits cannot be used, they are case sensitive,special characters cannot be used.
data structures-ways of organising or describing pieces of data example lists:todo=list["cow","goat"],turple,sets
data types:integer-print(123),float-numbers with decimal points,boolean-true or false,
**commenting **in python by use of # and """,""":comments do not a[ppear on the code they just give instructions


Original Link: https://dev.to/sarleymwaka/introduction-to-python-23l3

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To