32:55 n = int(input("enter your num:")) def odd_or_even(n): if(n%2 == 0): print("EVEN") else: print("ODD") odd_or_even(n)
@Pasargevivek-ez7yc9gx3y9 ай бұрын
Great bro 👍
@muhammadalam11988 ай бұрын
def input_num(): num1 = int(input("Enter any one number")) if num1 % 2 == 0: print("even") else: print("odd") input_num()
@NishchayGola8 ай бұрын
your code is showing an error
@NishchayGola8 ай бұрын
def odd_even(): n = int(input("enter number:")) if n%2 == 0: print("EVEN") else: print("ODD") odd_even()
@someshchandrasharma12047 ай бұрын
n= int(input("Please Enter a number: ")) def checker(a): if a % 2 == 0: print("EVEN") else: print("ODD") checker(n)
@tahirahmed77738 ай бұрын
The best teacher i have ever seen. Ap bohot logon ki dua lerahi ho didi
@zubairzakeer87726 ай бұрын
32:45 def func(a): if(a%2 == 0): print("EVEN") else: print("ODD") n = int(input("please enter a number : ")) func(n)
@krishnakumardubey506910 ай бұрын
Please ma'am after completing this series please go with Flask or Django series Please❤
@CodeNinja1810 ай бұрын
free me itna sab kuch nahi milega
@Trishaan_creations10 ай бұрын
@@CodeNinja18 Bhai Sab Milega , Aap Maam ko Shyad Jante Nahi ho.......
@karthiksundaram54410 ай бұрын
❤
@karthiksundaram54410 ай бұрын
❤
@karthiksundaram54410 ай бұрын
❤
@AJosl3602 ай бұрын
key topic with time stamp :----> 00:01 Functions in Python are blocks of code that can be reused. 02:02 Functions reduce redundant code and improve reusability. 06:12 Understanding function calls and parameters in Python. 08:09 Using functions reduces redundancy and makes code more efficient. 12:13 Functions in Python can be created with or without parameters and return values. 14:17 Functions offer a way to encapsulate code for reuse. 18:06 Understanding built-in and user-defined functions in Python. 19:58 Understanding default parameter values in Python functions 24:04 Creating functions to print lists with proper formatting 26:09 Understanding functions and recursion in Python 30:35 Introduction to functions and recursion in Python 32:36 Recursion in Python 36:10 Recursion is used to print numbers in a function call 37:55 Explaining recursion in Python with a specific example 41:39 Understanding the call stack in Python. 43:29 Recursion creates layers of function calls 46:59 Understanding the concept of recursion and factorial in Python. 49:04 Understanding recursion and its application in programming 52:51 Understanding recursion through the factorial function 54:40 Understanding recursion and writing recursive functions in Python. 58:29 Understanding recursion in Python 1:00:41 Understanding recursion in Python thanks
@Anonymous-Guy-0110 ай бұрын
Everyone mail Apna College to complete the Python series all topics in deep & start DSA with Python 🙏🏻
@raunaksingh2595210 ай бұрын
Yeh 😮
@priyansumohanty387510 ай бұрын
Abhi ke liye kuch acha playlist available hai kya dsa in python ?
32:33 def even_odd(number): if number%2==0: print("even") else: if number%2!=0: print("odd") even_odd(9) Output:- Odd
@sportsmentor66558 ай бұрын
Awesome
@GovindKhedkar-vr6yl7 ай бұрын
55:00 # sum of first n natural number using recursion n = int(input("Enter a number ")) def sum1(n): if (n ==0): return 0 return n + sum1(n-1) print(sum1(n)) # write a recursion function to print all elements in list list =[53,88,43,77,12,88,33] def fun(list, n): if (n == len(list)): return print(list[n], end= " ") fun(list, (n+1)) fun(list, 0)
@Dxsired_1vyАй бұрын
use for instead of if
@ManavGarg76 ай бұрын
32:30 hw def finder(n): if(n%2==0): print("even") else: print("odd") finder(int(input("enter the number : ")))
@potnuruchaitanya84964 ай бұрын
Def finder() X =(int(input("entered no. =")) If(X%2==0): print("even") else: print("odd") It's an easy method😌
@potnuruchaitanya84963 ай бұрын
@@ArjunKr-q3o it will work
@potnuruchaitanya84963 ай бұрын
@@ArjunKr-q3o I think u have understand the question.....Ma'am have told to use an input program.....pls rewatch the question
@shahfaixu15443 ай бұрын
@@potnuruchaitanya8496 he used it at func call..
@PriyoM19932 ай бұрын
n = int(input("Enter : ")) def odd_even(): if n % 2 == 0: print("EVEN") else: print("ODD") odd_even()
@madhurasarkar81179 ай бұрын
32:50 def check_num(n): if n%2 == 0: print("this is an even number") if n%2 != 0: print("this is an odd number") n = int(input("enter num: ")) check_num(n)
@ryuga_20075 ай бұрын
Wrong h
@sauravrawat-gk5kb10 ай бұрын
def num(a): if(a %2== 0): print("This is even",a) else: print("This is odd",a) num(10)
@arfatshaikh85377 ай бұрын
input lena tha user se def even_odd(num): if (num % 2 == 0): print("Even") else: print("odd") even_odd(int(input("Enter No:")))
@ryuga_20075 ай бұрын
Wrong h
@shivambhardwaj8748Күн бұрын
bhai user input lena thaa [ num(int(input("Enter a number"))) ] function call hoga
@ankitsaini740049 ай бұрын
32:40 def chkodd_even(n): if n%2 == 0: return "EVEN" else: return "ODD" n = int(input("Enter a number:")) print(chkodd_even(n)) INPUT: Enter a number:5 OUTPUT: ODD
@akhileshghatate41575 ай бұрын
57:36 I made a basic self question to practise by self for odd/even with recursion def eve(n): if(n==0): return True elif (n==1): return False else: return eve(n-2) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ def od(n): if(n==0): return False elif(n==1): return True else: return od(n-2)
@khushpreet99915 ай бұрын
Recursion smjh nhi aaya tha..toh shradha didi ki dekhne k baad code with h arry pr dekha vha bhi nhi aaya phir codebios pr dekha,, phir dobara yhi aagyi,.. or ab perfect smjh aagya... you are best didi ❤
@ZaraQureshi-i1d3 ай бұрын
same 😭
@gtbihari4185 ай бұрын
32:55 def inp_odd_even (n): if n%2 == 0: print("Even") else: print("Odd") n=int(input("Enter a no to check it is odd or even= ")) inp_odd_even (n)
@AkshayDabas-mh4hx6 ай бұрын
32:55 def even_odd(num): if num%2==0 : print("even") else: print("odd") even_odd(66)
@gtbihari4185 ай бұрын
55:00 n=int(input("Enter Number To Calculate First N Natural Nos= ")) def calsum(n): if n==0: return 0 else: return n + calsum(n-1) sum=calsum(n) print("Sum of First",n,"Natural Numbers = ",sum)
@vishnusit14 ай бұрын
i am following you since last 4 years. You deserve Bharat Ratna for your free contents. which is infinite times useful than any paid content available in india..
@DebaprasadDas-z9t9 ай бұрын
Hi Shrahda, The way you teach is really helpful . Thanks a lot . One thing i just wanted to say that factorial of any num is not like 1*2*3*...*num ,it should be num*....*3*2*1 . I know both will give same result but logic will get changed and i believe correct logic does matter even though both logics are giving same result .My intention was not to crrect you as you know many things better than me, here i just wanted to provide my opinion . Thank you....😊
@neelampandey19594 ай бұрын
def even_or_odd(num): if num==0: print("not even aur not odd") elif num%2==0: print("even number") else: print("odd number") num=int(input("enter a number:")) even_or_odd(num) Print("Thankyou didi") 32:23
@Shivampandey-gc4mk4 ай бұрын
I love your code
@vishal1980able8 ай бұрын
32:41 cal_fact(81) def cal_evod(num): if(num%2==0): print("the remainder is",num%2,",","THIS IS AN EVEN NUMBER !") else: print("the remainder is",num%2,",","THE NUMBER IS ODD !") cal_evod(84)
@rishikasharma88224 ай бұрын
Homework at 32:20, n = int(input("Enter the value: ")) def odd_even(n): if(n % 2 != 0): print("ODD") else: print("EVEN") odd_even(n)
@Canun57126 ай бұрын
57:20 n=int(input("enter number")) def calc(n): if(n==0): return n else: return calc(n-1)+n print(calc(n)) this will also do the job
@Rajput167810 ай бұрын
Ma'am please also cover the projects throughout this python series as you did for JavaScript series
@R_ishabh_Singh5 ай бұрын
32:40 n = 1 def odd_even(n): if n % 2 == 0: print('Number is Even') else: print('Number is odd') odd_even(5) odd_even(6)
@anoopverma196510 ай бұрын
Please continue this series of tutorials with SQL (MySQL) so that projects using database can be created. This will be useful as it will use some dataset libraries like Numpy or Matplotlib and projects can be made.
can anyone explain me what is the use of "return" code at 13:50
@sudheerrrrrrrrrrrrrrrrrrrrrrr4 ай бұрын
@@Jeevan-gj6wj if you call the function by assigning its value to a variable. then it stores the final output of the function. basically if u print() then the value will be directy gets printed. if you want to use the output further u should return it
@F2003S8 ай бұрын
An outstanding learning platform. Well done, Ma'am.
@manjeettyping797910 ай бұрын
32:49 My Solution Code userinput = int(input("Enter Your Number ")) def oddevenchecker(thisnumber): myvalue = thisnumber if(myvalue%2 == 0): print('Even Number') elif(myvalue%2 == 1): print('Odd Number') oddevenchecker(userinput)
@Rajput-wm6sc7 ай бұрын
32:44 def checker(): a = int(input("enter number : ")) if(a%2==0): print("EVEN.") else: print("ODD.") checker() #calling the function.
@abhinavop14069 күн бұрын
32:50 Answer: n=int(input("Enter the value")) def odd_even(n): if n%2==0: print("Even") else: print("Odd") odd_even(n)
@krishnaagarwal154110 ай бұрын
Home Work: def number(n): if(n%2==0): print("even") else: print("odd") return n number(9) number(4)
@siamkhan368210 ай бұрын
well tried.🎉 mad said, you have to take input from user
@MD_TALHA3077 ай бұрын
@@siamkhan3682n = int(input("Enter a any number")) def even_odd(n): if n%2==0: print("Even") else: print("Odd") even_odd(n)
@Ali-t3q1i5 ай бұрын
Not a single person in subcontinent explains Python language like Mark Myers do but you are definitely made your mark. Fan from Pakistan
@Jeevan-gj6wj4 ай бұрын
can anyone explain me what is the use of "return" code at 13:50
@shashank_18744 ай бұрын
@@Jeevan-gj6wj Good question. In that case, it wasn't necessary to use "return" because we were directly printing the average. However, it's generally a good practice to use "return" in programming. If you're returning a value, store it in a variable and then print it..
@Hustlersattitudebytes3 ай бұрын
@@shashank_1874 did she explained advance python?
@amritanshushandilya52383 ай бұрын
Home work question answer def odd_even(n): if(n%2==0): print("EVEN") else: print("ODD") odd_even(45)
@Umer_ubaid3 ай бұрын
use input function
@Abdullah_Dayan4 ай бұрын
Home work : = 32:30 def num (a): if a % 2==0: print("Even") else: print("Odd") num(int(input("Enter your number :")))😊😊
@kingsurya1659Ай бұрын
14:32 def calc(a,b,c): sum = a+b+c avr = sum/3 print(avr) calc(int(input("enter a first value")),int(input("enter a secound value")),int(input("enter a thred value")))
@Peoplesshine10 ай бұрын
we want DSA in python
@chandu.wri8ts_8 ай бұрын
Hammm yarrrr
@plazatotalmemeing90716 ай бұрын
Dude do it with java . It's much better
@BRO129545 ай бұрын
Yes mam we want
@pratikdahal17505 ай бұрын
@@plazatotalmemeing9071ok. Hey , do you know any other languages? Can you tell me what I should learn next after learning PYTHON?
i liked......... you sow that line of great swami vivekanand ji . It is very beautiful way to encourage to student that seeing your python lecture...... if some student seen title and they thought it is difficult of chapter 6 that lines you sown on screen it make inspire ............. your teaching style is very cool apna collage..😇
00:01 Functions in Python are blocks of code that can be reused. 02:02 Functions reduce redundant code and improve reusability. 06:12 Understanding function calls and parameters in Python. 08:09 Using functions reduces redundancy and makes code more efficient. 12:13 Functions in Python can be created with or without parameters and return values. 14:17 Functions offer a way to encapsulate code for reuse. 18:06 Understanding built-in and user-defined functions in Python. 19:58 Understanding default parameter values in Python functions 24:04 Creating functions to print lists with proper formatting 26:09 Understanding functions and recursion in Python 30:35 Introduction to functions and recursion in Python 32:36 Recursion in Python 36:10 Recursion is used to print numbers in a function call 37:55 Explaining recursion in Python with a specific example 41:39 Understanding the call stack in Python. 43:29 Recursion creates layers of function calls 46:59 Understanding the concept of recursion and factorial in Python. 49:04 Understanding recursion and its application in programming 52:51 Understanding recursion through the factorial function 54:40 Understanding recursion and writing recursive functions in Python. 58:29 Understanding recursion in Python 1:00:41 Understanding recursion in Python Crafted by Merlin AI.
@aseerahnaf77138 ай бұрын
num = int(input("Odd or Even num: ")) def oddEven(a): if a%2==0: return("Even") else: return("Odd") print(oddEven(num)) Done❤❤ ✅
@THE_VIPER9742 ай бұрын
32:44 def odd_even(n): if n%2==0: print("EVEN") else: print("ODD") odd_even(10)
@Kohlified-176 ай бұрын
32:55 #function to check odd or even def check_master(n): if n%2 == 0: print("This is Even number") else: print("This is Odd number") print(check_master(24))
@ryuga_20075 ай бұрын
Input lena bhul gya😂👍
@sidharthkashyap624110 ай бұрын
That Call Stack Analogy was enormously helpful to grasp the Recursion concept...thanks a lot mam❤
@ovinondontoall10 ай бұрын
Really awesome this function But This video make me easy to learn recursion in python kzbin.info/www/bejne/gKvScqKtfsRsprc
@akshatpurigoswami38566 ай бұрын
x = int(input("enter any number:")) def odd_even(x): if x%2==0: print("EVEN") else: print("ODD") odd_even(x) My work
@gchethan94722 ай бұрын
Hello all This one the best python basic lecture you will ever get, In the entire video she never asked for subscribe or like. Let’s encourage her to do more courses like this and help crores of students and learner’s. Keep up the good work Shraddha and keep on helping people.
@prabhdeepsingh47510 ай бұрын
Home work : n=int(input("Enter the number:")) def eo(n): if(n%2!=0): print("ODD") elif(n%2==0): print("EVEN") eo(n)
@AthifShaik-wj8re3 ай бұрын
11:49 We can do with " for " also like: for i in range (5): Print ("hello") Boom
Bahut acchi teacher ho aap wo quality hai aap me ki samane wale ko kya chahye thank u so much
@sudhanshubisai34637 ай бұрын
32:40 homework problem num=int(input("enter your number-")) def odd_even(n): if n%2==0: state="even" else: state="odd" return(state) print(odd_even(num))
@AhmedNadim-ez5ij7 ай бұрын
def num(a): a = int(input("Enter a number: ")) if (a %2 == 0): print("EVEN",a) else: print("ODD",a) num(4)
@dipakkandel29346 ай бұрын
def fact(a): val=1 for o in range(1,a+1): val*=o print(val) fact(9)
@coneptlearning7 ай бұрын
32:45 homework problem answer a = int(input("Enter your number")) def num(a) : if (a%2 == 0): print("EVEN") else : print("ODD") num(a)
@pradipyadav875123 күн бұрын
Fantastic explanation of recursion. Thank you so much. Now I have clear understanding of recursion in python. nice job.
@TheTwistedRoom29 күн бұрын
def convert (a,b=84.41): sum = a * b print(sum) return sum convert(500) print(convert) THIS IS THE EASY WAY TO FIND USD TO INR $$$.... 😀🙏
@rabinsdhi-mv1pt6 ай бұрын
homework question. def check(n): if n%2==0: print("even") else: print("odd") check(6) the output will be "even".
@dhananjayjadhav75686 ай бұрын
HW ----> def check(): no = int(input("Enter a no:")) if no%2==0: print("EVEN") else: print("ODD") check()
@tausifeditor2.02 ай бұрын
# Recursion Function def show(n): # n==7 # n==6 if n == 0: # 7==0 false # 6==0 false return print(n) # 7 # 6 show(n-1) # 7-1 # 6-1 etc. show(7) # Calling
@HaranSaifi24 күн бұрын
32:45 that is my answer = > def odd_even_cal(num): if num %2 == 0: print("num is: 'EVEN'") else: print("num is: 'ODD'") odd_even_cal(100)
@seekhoaursikhao40468 ай бұрын
Hi Shradha, Thank you for the series, its really helpful, the words spelled from your voice, is effective to place in our mind, but yes we have to do lots of practice. 2ndly Can you create a vision or direction towards IT-Admin switching to DevOps platform , for them how you will take the python as a scripting language, as a DevOps Admin, not like a developer/coder. Please create a video series on this.case studies or scenario based tutorials please, so the we can clear the basic concepts which is used in day to day life in companies (playing With AWS,Docker,K8 and a lot, for Automation). Waiting for it.
@norenlee4796 ай бұрын
"Thank you so much for your detailed explanation-it really helped me on my Python journey. Please keep making more Python videos in the future. You're amazing!"
@rockybhaikgf86029 ай бұрын
wow, just looking like a great teacher
@datascience-z7l10 ай бұрын
def calc_num(n): if n%2==0: print("EVEN") else: print("ODD") calc_num(8)
@neededucation10 ай бұрын
num=int(input("Enter the number:")) def oddeven(num): if num%2==0: print("THIS IS AN EVEN NUMBER") else: print("THIS IS AN ODD NUMBER") oddeven(num)
@bhavinthakur10 ай бұрын
You can do the same by this method also: def oddeven(): num=int(input("Enter the number:")) if num%2==0: print("THIS IS AN EVEN NUMBER") else: print("THIS IS AN ODD NUMBER") oddeven() good work anyway
@bangff653710 ай бұрын
def finder(a): if(a%2==0): print(a,"is even number") else: print(a,"is odd num")
@pradeepahirwar366310 ай бұрын
It's was amazing video lecture series. Very Useful. 🎉🎊
Homework: def odd_or_even(number): if number % 2 == 0: return "even" else: return "odd"
@YousafUmer-xj2lu5 ай бұрын
def checker (): a = int(input("enter the number to check :")) if a %2 == 0: print(a,"is a even number") else: print(a , "is an odd number") checker()
@ImRich-xo8cm8 ай бұрын
n=int(input('enter the num:')) def fact_(n): b=1 if(n
@nazishjahan0410 ай бұрын
you explained recursion brilliantly
@manjeettyping797910 ай бұрын
21:40 My Solution thisnumber = [1,2,3,4,5,6,7,98,398,39,55,98,34,23] def findlength(thiscitylength): return thiscitylength thislength = findlength(len(thisnumber)) print(f'Your actual Length is {thislength}')
@adityabobade268510 ай бұрын
def even_odd(n): if n %2==0: print("even") else : print("odd") n = int(input("enter a number:")) even_odd(n)
@vikk9810 ай бұрын
def check_even_odd(): num = int(input("Enter a number: ")) if num % 2 == 0: return "Even" else: return "Odd" result = check_even_odd() print(f"The number is {result}.")
@NehaKumari-rs5xw17 күн бұрын
def is_even(n): # Base case if n == 0: return True # 0 is even elif n == 1: return False # 1 is odd else: # Recursive call return is_even(n - 2) def is_odd(n): # Base case if n == 0: return False # 0 is not odd elif n == 1: return True # 1 is odd else: # Recursive call return is_odd(n - 2) # Test the functions num = int(input("Enter a number: ")) if is_even(num): print(f"{num} is Even") else: print(f"{num} is Odd") Using recursion 54:00
@Kush-q6l6 ай бұрын
def odd_even(n): if n%2==0: return "EVEN" else: return "ODD" n=int(input("enter the value of n: ")) print("number is : ",odd_even(n))
Yes ma'am could you please make videos on dsa in python
@TUFFANGAMING157 ай бұрын
55:36 def sum(n): if (n==0): return 0 else: return sum(n-1) + n print(sum(5)) is this right ??
@zeeleditz018 ай бұрын
Great Explanation
@sahilhatwar65755 ай бұрын
HOMEWORK QUESTION # WAF such that if your input is odd it will print odd and if the input is even then it print even def num(a): if(a%2==0): print("even") else: print("odd") num(2)
@hiteshdhawan1Ай бұрын
I literally learnt this entire series in one day! simple straightforward. also my previous coding exp. of C++ java and c# helped, but python is so simplistic as compared to them! no need for semicolons also :P ; bas real project me impliment karna hai aur bekar logo k saath kam karne na mile bas yahi dua h.
@sunnygosecrets5 ай бұрын
def check_even_odd(): number = int(input("Enter a number: ")) if number % 2 == 0: print("EVEN") else: print("ODD") # Example usage: check_even_odd()
@atulbhandvalkar25105 ай бұрын
def odd_or_even(num): if num % 2 == 0: print(f"{num} is even") else: print(f"{num} is odd") odd_or_even(7) in this code we can take the number by input keyword and can place it in the place of num in the function. like num = int(input("Please enter the number: ") and then can write function as written above. This time we need not to call function again.