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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • 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/Par...
    Kaggle 🔗 kaggle.com/par...

ความคิดเห็น • 2

  • @manasrastogi504
    @manasrastogi504 ปีที่แล้ว +2

    Mere sare doubts clear kar diye, Sir aapne

    • @Param3021
      @Param3021  ปีที่แล้ว

      Welcome sir :D