filmov
tv
How will you print numbers from 1 to 100 without using loop in python?

Показать описание
How will you print numbers from 1 to 100 without using loop?
Well, one possibility is the use of ‘recursion’ provided we use the terminating condition carefully. Here is a solution that prints numbers using recursion.
*Note :- Copyright Disclaimer Under Section 107 of the COPYRIGHT ACT 1976, allowance is made for "FAIR USE" for purpose such as criticism, comments, news reporting and research. Fair use is a use permitted by COPYRIGHT statue that might otherwise be infringing.
For more information, Please write back to us at # or call us at IND :- # / US :- #(toll free).
Thank you very much
Jai Hind
Well, one possibility is the use of ‘recursion’ provided we use the terminating condition carefully. Here is a solution that prints numbers using recursion.
*Note :- Copyright Disclaimer Under Section 107 of the COPYRIGHT ACT 1976, allowance is made for "FAIR USE" for purpose such as criticism, comments, news reporting and research. Fair use is a use permitted by COPYRIGHT statue that might otherwise be infringing.
For more information, Please write back to us at # or call us at IND :- # / US :- #(toll free).
Thank you very much
Jai Hind