Skip to content

Instantly share code, notes, and snippets.

Created April 1, 2013 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5286756 to your computer and use it in GitHub Desktop.
Save anonymous/5286756 to your computer and use it in GitHub Desktop.
Python ist nun endlich auch für Personen, die ausschließlich die deutsche Sprache beherrschen zugänglich.
# -*- coding: utf-8 -*-
Gleitpunktzahl = Gleitkommazahl = Fliesskommazahl = float
ZeichenKette = str
GanzZahl = int
GrosseGanzZahl = long
Objekt = object
KomplexeZahl = complex
Liste = list
Tupel = tuple
Menge = set
EingefroreneMenge = frozenset
Woerterbuch = dict
if __name__ == '__main__':
resultat = Gleitkommazahl(2) + Gleitkommazahl(2) + GanzZahl(2)
print resultat
menge = Menge(Liste([GanzZahl(3), GanzZahl(1), GanzZahl(2), GanzZahl(3)]))
print menge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment