Sign in

Let’s Start :

Addition Of N Numbers

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

additionN

https://gist.github.com/jhonsnow456/2336af838c7137c38bcfb9f8c89e1a91

Conditional Branching

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

In Python conditional branching is done using the “if”- “elif” — “else” 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