diff options
| author | nic <ra@afu.re> | 2025-02-10 13:22:15 -0500 |
|---|---|---|
| committer | nic <ra@afu.re> | 2025-02-10 13:22:15 -0500 |
| commit | 9d8c7dd6a6d84b88d976024b43d00fcc0239b2e1 (patch) | |
| tree | a94e482b7b2630f4f8e95290f93facc6d1bd9208 /Technology/6.0001 Introduction to Computer Science and Programming in Python.md | |
| parent | 4541e08e71655783cbfba907b036dd66261f8ae8 (diff) | |
Auto from nzxt - Mon 10 Feb 2025 01:22:15 PM EST
Diffstat (limited to 'Technology/6.0001 Introduction to Computer Science and Programming in Python.md')
| -rw-r--r-- | Technology/6.0001 Introduction to Computer Science and Programming in Python.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Technology/6.0001 Introduction to Computer Science and Programming in Python.md b/Technology/6.0001 Introduction to Computer Science and Programming in Python.md index 3f4ce70..99a06d2 100644 --- a/Technology/6.0001 Introduction to Computer Science and Programming in Python.md +++ b/Technology/6.0001 Introduction to Computer Science and Programming in Python.md @@ -41,7 +41,7 @@ modern langs evolved from primitives primitives -> expressions -> values -> meaning -Primitve constructs: +Primitve constructs(Syntax): - English: Words - Prog langs: Numbers, Strings, Simple operators @@ -111,16 +111,16 @@ Operators can be combined to form expressions, the value of the expression is an - is - is not - Variables can't start with a number - Variables are case sensitive - Keywords(reserved words) can't be used - Identatation sementically meaningfull +Variables can't start with a number +Variables are case sensitive +Keywords(reserved words) can't be used +Identatation sementically meaningfull - Strait Line Programs VS Branching Programs (ex: with conditional expresion) +Strait Line Programs VS Branching Programs (ex: with conditional expresion) - slicing = sequence[start:stop:step] - 'abc'[:] = 'abc'[0:len('abc')] +slicing = sequence[start:stop:step] +'abc'[:] = 'abc'[0:len('abc')] when convert float to int : truncated not rounded |
