Informatik-Unterricht/3. Übungen/17.03.2022/Übung Ausgabewerte2.py

12 lines
200 B
Python
Raw Normal View History

2022-03-17 14:20:54 +01:00
# Übung Wertzuweisung
a=65
b=3
c=10
k=c**3-a #10^3-65=935
m=5-(c-a)+(c-b)**2 #5-(10-65)+(10-3)^2=109
o=c%3+c//4 # 10%3+10//4=1+2=3
p=a*(c**5-1)+b # 65*((10^5)-1)+3=6499935+3=6499938
print(k,m,o,p)