Search
a(x,y,z)
b(x,y,z)
def a(x,y,z): return (x and y) or (not y and z) def b(x,y,z): return x or z
my_find(a,b)
a
b
my_replace(a,b,c)
c
len(s)
s[i]
i
s[i:j]
j
s[:j]
s[i:]
Ahoj
Cau
Konec
split()
f=open('line.txt','r') line = f.readline() pole = list(map(int, line.split()))
open
readline
for
append
pole=[] f=open('pole.txt','r') for line in f: pole.append(int(line))
print(pole)
for x in pole: print(x)
Implementujte následující úlohy:
min(a,b)
max(a,b)
area(radius)
d2r(angle)
r2d(angle)
normalize(angle)
while
1 2 3 4 5 6 7 8 1 2 3 5 5 6 2 10
-4
123456789 200
123-4+5-6-7+89 123+4+5+67-8+9 1+234-5-6-7-8-9