2021-10-01 14:37:07 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
Created on Fri Oct 1 10:42:13 2021
|
|
|
|
|
|
|
|
@author: Joschka
|
|
|
|
"""
|
2021-10-08 11:18:12 +02:00
|
|
|
import numpy as np
|
2021-10-01 14:37:07 +02:00
|
|
|
|
2021-10-27 12:17:16 +02:00
|
|
|
a = np.ones(50)
|
2021-10-26 14:33:07 +02:00
|
|
|
|
2021-10-27 12:17:16 +02:00
|
|
|
for i in range(0,len(a)):
|
|
|
|
a[i] *= i
|
|
|
|
|
|
|
|
print(a)
|
|
|
|
|
|
|
|
print(a[:5])
|
|
|
|
print(a[5:])
|
|
|
|
print(a[:-5])
|
|
|
|
|
|
|
|
print(10e-3/13.7)
|
|
|
|
|
|
|
|
a = 7
|
|
|
|
|
|
|
|
if (a == (7 or 3)):
|
|
|
|
print("true")
|