#!/usr/bin/python def rechner(): formel=raw_input() (zahl1, op, zahl2)=formel.split() zahl1=float(zahl1) zahl2=float(zahl2) if op=='+': print zahl1+zahl2 elif op=='-': print zahl1-zahl2 elif op=='/': try: print zahl1/zahl2 except ZeroDivisionError: print "Durch Null dividiert" elif op=='*': print zahl1*zahl2 rechner()
Archiviert am 14.02.2026
valid-html401.png patent_button.gif anybrowser.gif permaplant.png vim.gif elektra.jpg fsfe-logo.png valid-css.png