Die Welt der Zahlen
Los geht es mit der ersten Zeile Code
name = 'Kerem'
print('Hallo',name, 'Wilkommen auf Python')
x= 7
print('Deine erste Zahl ist:',x)
y=2
print('Deine zweite Zahl ist:',y)
# Addition
z = x+y
print(x, '+' ,y, '=' ,z)
# Subtraktion
z = x-y
print(x,'-',y,'=',z)
# Multiplikation
z = x*y
print(x,'*',y,'=',z)
# Division
z = x/y
print(x, '/', y, '=',z)
# Rest
z = x%y
print(x,'%',y,'=',z)
# Potenz
z = x**y
print(x,'hoch',y,'=',z)
--- AUSGABE ---
Hallo Kerem Wilkommen auf Python
Deine erste Zahl ist: 7
Deine zweite Zahl ist: 2
7 + 2 = 9
7 - 2 = 5
7 * 2 = 14
7 / 2 = 3.5
7 % 2 = 1
7 hoch 2 = 49