An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
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
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To