Let’s Start :

Addition Of N Numbers

Program to Calculate the sum of N inputs of from the user:



Conditional Branching

Conditional branching is used to make the system execute one set of statements and skip another set of statements, based on a

In Python conditional branching is done using the “if”- “elif” — “else” statement.

if statement:

if statement is used for conditional branching of program code.

It has:

  1. A criteria
  2. A block of code associated with it

System evaluates the criteria and results into a boolean. When the boolean value is True then the associated block of code executes, otherwise not.

Optionally as “if”…

Aman Thakur

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store