Python LanguageUsing loops within functions

Introduction

In Python function will be returned as soon as execution hits "return" statement.

Related Examples

Return statement inside loop in a function