Zusammenfassung der Ressource
Python
- Algorithms
- Decomposition
- Breaking down a
problem into
smaller simpler
steps
- also known
as
factoring
- like, how there are different ingredients in
a cake: egg, flour, milk, bicarbonate of soda,
butter, icing and more
- A set of instructions to
solve a problem
- Imagine you
had to show a
robot how to
make tea., you
would have to
say the
instruction
clearly and
strategically
how to make
it.
- Abstraction
- When you
block out
irrelavant
information
and you
focus on the
main things.
- such as our normal map:
- Such as the
London
Underground
Map
- Sequence
- The order
a computer
solves a
problem
- Variable
- A place where certain
info or data is held
- e.g. x, y,
z
- You can
use a
integer to
represent
the
variable
- Decimals
are called
floats
- they can be
represented
by integers
aswell
- Decimal
numbers are
called floats
- Functions
- Built-in routines that do a job
- It's the most
famous
coding
language
Anlagen:
- Guido van
Rossam
created it
- released in
1991
- Made in
1991
- Strings
- they can
either be in
'...' "..."
Anmerkungen:
- you can describe this by:
print("Hello!")
or,
a=("Hello!")
print(a)
- Strings are displayed
on the main website,
or whatever you are
creating
- to change the case:
- print(a.upper())
- print(a.lower())
- If you have a
script and you
have to find a
word according
to a number ,
you do this:
Anmerkungen:
- HELLO WORLD
print(a[1]) = E
(because it starts at 0)
print(a[5]) = -(space)