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
Top comments (0)