From f44b04f411775eb6d4b8a0862a2e60d159a073bc Mon Sep 17 00:00:00 2001 From: krishnasridontha <31000453+krishnasridontha@users.noreply.github.com> Date: Fri, 2 Feb 2024 13:08:23 -0600 Subject: [PATCH] Update 40_control_statements.md elif program Elif program: For a = 15 will give output has "greater than 10" only but doesn't give both "greater than 10" and "less than 20". So condition is invalid- more confusing. so changed a == 10. --- .../content/04_functions_and_loops/40_control_statements.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/content/04_functions_and_loops/40_control_statements.md b/website/content/04_functions_and_loops/40_control_statements.md index 3f28535..348c5bc 100644 --- a/website/content/04_functions_and_loops/40_control_statements.md +++ b/website/content/04_functions_and_loops/40_control_statements.md @@ -231,10 +231,10 @@ You can have as many `elif` statements in your code as you want. They get evalua ... print("Greater than 10") ... elif a < 10: ... print("Less than 10") -... elif a < 20: -... print("Less than 20") +... elif a == 10: +... print("exactly 10") ... else: ... print("Dunno") ... Less than 10 -``` \ No newline at end of file +```