From f782e433caedc299532fcbfc98edca5828725716 Mon Sep 17 00:00:00 2001 From: Sven Riwoldt Date: Tue, 3 Nov 2020 07:07:36 +0100 Subject: [PATCH] =?UTF-8?q?Umlaute=20werden=20jetzt=20unterst=C3=BCtzt=20(?= =?UTF-8?q?https://www.python-forum.de/viewtopic.php=3Ft=3D5095)=20und=20T?= =?UTF-8?q?ests=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vector.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vector.py b/vector.py index b8b7a4e..a7fb54d 100644 --- a/vector.py +++ b/vector.py @@ -1,3 +1,5 @@ +# -*- coding: iso-8859-15 -* + class Vector(object): def __init__(self, coordinates): try: @@ -19,3 +21,8 @@ class Vector(object): def __eq__(self, v): return self.coordinates == v.coordinates + +# Tests + +vektor_1 = Vector([1,2,3]) +print vektor_1 \ No newline at end of file