Added
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -18,6 +18,7 @@ uuid: "1761816261355"
|
||||
- [ ] Projekt Raussuchen
|
||||
- [ ] Vorher absprechen 7.11/14.11?
|
||||
|
||||
Montag 24.11 10h Jorsewieck Büro
|
||||
|
||||
|
||||
---
|
||||
|
||||
@@ -16,6 +16,78 @@ thumbnail: thumbnails/resized/e3f80df020cca3c2d7e2ffdc7d968e79_86cf658e.webp
|
||||
- [ ] Beispiele planen
|
||||
|
||||
## Ablauf
|
||||
- Comments
|
||||
```python
|
||||
# This is a Comment
|
||||
|
||||
"""This is a Docstring"""
|
||||
'''This is also a Docstring'''
|
||||
```
|
||||
- Variablen
|
||||
```python
|
||||
var = 5 # a Variable which holds the Number 5
|
||||
```
|
||||
- Print
|
||||
- String
|
||||
- f-String
|
||||
```python
|
||||
'Single Quote String'
|
||||
"Double Quote String"
|
||||
|
||||
txt = 'String'
|
||||
f'This is a format-{txt}'
|
||||
f"This is a format-{txt}"
|
||||
```
|
||||
- Datentypen
|
||||
- Bool
|
||||
- Int
|
||||
- Float
|
||||
```python
|
||||
flag = True | False
|
||||
num = 1 | -1
|
||||
price = 3.141 | -inf
|
||||
```
|
||||
- Rechenoperationen
|
||||
- Addition
|
||||
- Subtraktion
|
||||
- Multiplication
|
||||
- Exponentiation
|
||||
- Division
|
||||
- Ganzzahldivision
|
||||
- Ringarithmetik
|
||||
```python
|
||||
5 + 4 = 9
|
||||
5.0 + 4 = 9.0
|
||||
0.25 - 1 = -0.75
|
||||
2*2 = 4
|
||||
2**24 = 16.777.216
|
||||
10 / 3 = 3.33
|
||||
10 % 3 = 1
|
||||
10 // 3 = 3
|
||||
```
|
||||
- If/Else
|
||||
```python
|
||||
if 4 < 3:
|
||||
print(True)
|
||||
elif 5 < 4:
|
||||
print("Hello")
|
||||
else:
|
||||
num = 7
|
||||
```
|
||||
- For/While - Loop
|
||||
```python
|
||||
for i in range(0,10,2):
|
||||
print(i)
|
||||
|
||||
i = 0
|
||||
while i < 10:
|
||||
print(i)
|
||||
i += 2
|
||||
```
|
||||
- assert
|
||||
```python
|
||||
assert num > 3 "Num must be greater than 3"
|
||||
```
|
||||
|
||||
## Beispiele
|
||||
```python
|
||||
|
||||
@@ -10,7 +10,7 @@ thumbnail: thumbnails/resized/e3f80df020cca3c2d7e2ffdc7d968e79_86cf658e.webp
|
||||
---
|
||||

|
||||
# 14.11.2025
|
||||
|
||||
https://theskylive.com/voyager1-info
|
||||
# Tasks
|
||||
- [ ] Task1
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user