Introduction¶
Concepts¶
Computers
Number Coding
Algorithm, program, programming language
Compiled and interpreted languages
- ref:
The Python creator <https://www.youtube.com/watch?v=ucD_1ryKKm0>
- ref:
The Python History <https://www.youtube.com/watch?v=ucD_1ryKKm0>
- ref:
The Python Features <https://www.youtube.com/watch?v=ucD_1ryKKm0>
value: minimal value, operators.
type and
type()expressions, operands, operadors aritmètics
The assignment statement
=: the EVAL - MEMO cycle.Assignment simple and multiple.
Sequential composition.
Input : the
input()function.Output:
print()funtion <https://en.wikipedia.org/wiki/Standard_streams#Standard_output_(stdout)>`__Remarks: remark line
#and remark block''' ... '''
Keywords¶
+, -, *, /, //, %, **,
==, !=, <, <=, >, >=
max(), min(), abs(), round()
type(), int(), float(), str(), bool()
import, from ... import ...
=
print(), input()
#
'''
Examples¶
Notes¶
- Introduction
- Què és programar?
- El llenguatge de programació Python
- Compiladors i intèrprets
- L’intèrpret de Python
- Què és debugging?
- Valors i tipus
- Variables
- Noms de variables i paraules clau
- Assignment sentence
- Assignacions múltiples
- Actualitzant variables
- Sentències
- Avaluació d’expressions
- Operadors i operands
- Ordre de les operacions
- Operacions sobre strings
- Composition
- Assignació múltiple
- Comentaris
- Sortida
- Assignacions múltiples
- Actualitzant variables
- Exercicis
Slides¶
References¶
How to Think Like a Computer Scientist: Learning with Python 2nd Edition.