Programming in Python I Functions: LEGB Rule & Recursion I Session - 12 | Hindi

Поділитися
Вставка
  • Опубліковано 1 бер 2023
  • Programming in Python I Functions: LEGB Rule & Recursion I Session - 12 | Hindi
    In this session, we have discussed:
    - LEGB rule
    - Scoping of variables
    - Recursion
    Some questions you can try:
    Q: Write a recursive function sum_list(L) which returns sum of all elements in the list
    Q: Write a recursive function prod_list(L) which returns prod of all elements in the list
    Q: Write a recursive function is_palindrome(s) which checks whether s is palindrome or not
    Follow me on my social handles:
    Bio link 🔗 param302.bio.link
    Twitter 🔗 / param3021
    LinkedIn 🔗 / param302
    Github 🔗 github.com/Param302
    Kaggle 🔗 kaggle.com/param302

КОМЕНТАРІ • 2