Python Programming - "Else" Clause in Loop Statements

Published: 03 July 2021
on channel: Pablo's Spot
108
5

This DEVscoOPS episode touches on the use of "ELSE" clause in loop statements in python programming language. This video provides a simple example of using this feature in both for loop and while loop. This is one of many features in python programming language that some people hate but if usage is understood, it could help provide a clearer implementation and simpler exit (or return) points to python methods.

00:00 - Introduction
00:18 - Topic Description
00:41 - Test case for Cost calculation
01:28 - Class implementation of Cost calculation
02:22 - Running test
02:30 - Adding "else" clause in for loop
02:50 - Adding "else" clause in while loop
03:09 - Running test after refactoring
03:17 - Closing

#pythonprogramming #elsestatementinloops #programminglanguage


Watch video Python Programming - "Else" Clause in Loop Statements online without registration, duration hours minute second in high quality. This video was added by user Pablo's Spot 03 July 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 108 once and liked it 5 people.