From 3f68fa522ae52e0769e7bf935eb74a3bdf18c7b5 Mon Sep 17 00:00:00 2001 From: Dauemi <88590904+Dauemi@users.noreply.github.com> Date: Thu, 8 Aug 2024 14:54:05 +0100 Subject: [PATCH] Update 1-ExerciseOperatorPrecedence.py --- 2. Python Basics/1-ExerciseOperatorPrecedence.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/2. Python Basics/1-ExerciseOperatorPrecedence.py b/2. Python Basics/1-ExerciseOperatorPrecedence.py index 55e86b1..bb1a7b8 100644 --- a/2. Python Basics/1-ExerciseOperatorPrecedence.py +++ b/2. Python Basics/1-ExerciseOperatorPrecedence.py @@ -1,12 +1,12 @@ # Guess the output of each answer before you click RUN # Try to write down your answer before and see how you do... keep it mind I made it a little tricky for you :) -print((5 + 4) * 10 / 2) +print((5 + 4) * 10 / 2) 45 -print(((5 + 4) * 10) / 2) +print(((5 + 4) * 10) / 2) 45.0 -print((5 + 4) * (10 / 2)) +print((5 + 4) * (10 / 2)) 45 -print(5 + (4 * 10) / 2) +print(5 + (4 * 10) / 2) 25 -print(5 + 4 * 10 // 2) +print(5 + 4 * 10 // 2) 25