From 06671f5aed68753435a762bc3be43e83094156d1 Mon Sep 17 00:00:00 2001 From: geno Date: Wed, 26 Jun 2024 14:53:05 +0200 Subject: exercise 1 completed 1.b now works 1.c implened error for "function takes N positional arguments but M were given" --- progs/test2.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'progs') diff --git a/progs/test2.py b/progs/test2.py index c62d44a..9c1318d 100644 --- a/progs/test2.py +++ b/progs/test2.py @@ -1,3 +1,6 @@ -x = 1 -if y == 1: - print("a") +x = 2 ; y = 3 + +def f(x, y): + return x+y + +print(f(5,3,1)+ x + y) -- cgit v1.2.3-18-g5258