From 189ef4e70564264102aacf0ae35788b4fbfa07e0 Mon Sep 17 00:00:00 2001 From: Liron-Mizrahi <91504420+lironmiz@users.noreply.github.com> Date: Mon, 2 Jan 2023 07:34:08 +0200 Subject: [PATCH] Create unit1-Ex1.3.1.py --- unit1-Ex1.3.1.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 unit1-Ex1.3.1.py diff --git a/unit1-Ex1.3.1.py b/unit1-Ex1.3.1.py new file mode 100644 index 0000000..1adbe04 --- /dev/null +++ b/unit1-Ex1.3.1.py @@ -0,0 +1,35 @@ +''' Complete what the output will be obtained from running each line of code. +If the line of code is incorrect, type "error"''' + +# 1: +# print(hello world) +# Enswer: error + +# 2: +print(2 * 3) +# Enswer: 6 + +# 3: +print(("3 * 3") +# Enswer: 3 * 3 + +# 4: +print(2, 2) +# Enswer: 2 2 + +# 5: +print("hello", "world") +# Enswer: hello world + +# 6: +print("my age is", 7*3) +# Enswer: my age is 21 + +# 7: +print(15 // 2) +# Enswer: my age is 7 + +# 8: +print(50 + 2 * 4) +# Enswer: my age is 58 +