def evenodd(b): if b%2==0: print("Even") else: print("odd") a=int(input("Enter a Number: ")) evenodd(a) It is working fine. Your teaching method was good. Thank you so much for your learning vedios.
Hey thank so much for clear explanation. :) im just a beginner. Had a code for 1300+ lines and was very confused here and there to check each lines without knowing/understanding "def" function. Now i have reduced my code to less than 300 :P. Thank You once again
get an integer number from user and pass it to the function called passorfail solution: def passorfail(b): if(b>35): print("pass") else: print("fail") a=int(input("enter your marks:")) passorfail(a)
def findpassorfail(user): user=int(input("Check whether pass or fail : ")) if user>=35: print("You have passed") else: print("You have failed") findpassorfail(user)
def PassorFail(a): if(a>=35): if(a%2 == 0): print(a,"is pass and it is even") else: print(a,"is fail and it s Odd') a = float(input()) passorFail(a) *Bro, we want more videos about HTML*
def PassorFail(a): a = float(a) if a >= 35: if a % 2 == 0: print(f"{int(a)} is pass and it is even") else: print(f"{int(a)} is pass and it is odd") else: print(f"{a:.2f} is fail") # Taking input from the user grade = input("Enter the grade: ") PassorFail(grade)
tested code for even or odd def even_odd(): num=int(input("enter a:")) if (num%2==0): #if even div by 2 print("number is even") else: print("number is odd") even_odd()
def findevenorodd(user): user=int(input("Check whether the number is even or odd : ")) if user%2==0: print("It is even") else: print("It is odd") findevenorodd(user)
sir vunngalaa Mari enaku yarumeaaa solitharlaaa sir. Nanum neriyaaaa video pathaaa ethuvumaaa puriyalaaa negatha a superaaaa solikoduthigaaa sir thanks ❤ gethuuu sir negaaa
def findevenorodd(num): if(num%2==0): print(f"The Entered number {num} is even") else: print(f"The Entered number {num} is odd") findevenorodd(int(input("Enter the number to find its even or odd :")))
Bro check if it is Right.If user is given input. def findpassorfail() Mark=int(input("Enter the mark")) If Mark>=35 : Print("You are pass") else: Print("Fail ") findpassorfail()
# create a fn pass or fail if mark > than 35 pass or else fail def passorfail(): mark = float(input("enter mark:")) if mark >= 35: print("pass") else: print("fail") passorfail()
def findevenorodd(): a=int(input("Enter a:")) if(a%2==0): print("Even") else: print("Odd") findevenorodd() Bro I tried this and it came well i need to know why we need to type b%2==0 , and why we need to add b in the def function(b) at the start and in end we are calling a in the def function(a) instead we can easily call a and get the output can you please explain or anyone seeing this explain?? 22:30
def add(): a=int(input("Enter the number : ")) b=int(input("Enter the number : ")) print("Add:", a+b) add() def sub(): a=int(input("Enter the number : ")) b=int(input("Enter the number : ")) print("Sub:", a-b) sub() def mul(): a=int(input("Enter the number : ")) b=int(input("Enter the number : ")) print("Mul:", a*b) mul() def div(): a=int(input("Enter the number : ")) b=int(input("Enter the number : ")) print("Div:", a/b) div()
def evenodd(b):
if b%2==0:
print("Even")
else:
print("odd")
a=int(input("Enter a Number: "))
evenodd(a)
It is working fine.
Your teaching method was good. Thank you so much for your learning vedios.
Bro iam not having computer so how it use python in phone 😢
Bro use to programiz wep in mobile
In mobile
def value(a):
if(a%2==0):
print("Its Even")
else:
print("Its Odd")
value(10)
It's even
def passorfail(b):
if(b>=35):
print("Pass")
else:
print("Faill")
a=int(input("Enter your marks ? "))
passorfail(a)
def findevenorodd (b):
if(b%2==0):
print("Even")
else:
print("odd")
findevenorodd(a)
😂i need this type of teacher i will be the topper
your starting example of function explanation is great 👏👏.
Glad to hear that
Hey thank so much for clear explanation. :) im just a beginner. Had a code for 1300+ lines and was very confused here and there to check each lines without knowing/understanding "def" function. Now i have reduced my code to less than 300 :P. Thank You once again
def printrange():
a = int(input("enter a"))
b = int(input("enter b"))
for i in range(a,b):
print(i)
printrange()
def printrange(r1,r2):
for i in range(r1,r2):
print(i)
a=int(input("Enter a number: "))
b=int(input("Enter a number: "))
printrange(a,b)
get an integer number from user and pass it to the function called passorfail
solution:
def passorfail(b):
if(b>35):
print("pass")
else:
print("fail")
a=int(input("enter your marks:"))
passorfail(a)
Last task: FIndRange
def ranger(a,b):
for i in range(a, b):
print(i)
ranger(int(input()),int(input()))
Q3
def arjun(a):
if(a>35):
print ("pass ")
else:
print ("fail")
b=int (input ("enter the mark:"))
arjun(b)
Output
enter the mark:90
Pass
num=int(input("enter a number"))
def evenorodd():
if(num%2==0):
print(num,"is even")
else:
print(num,"is odd")
evenorodd()
def findevenorodd(operation):
a=int(input())
If(a%2==0):
Print("even")
else:
Print("odd")
Findevenorodd(10)
def printrange(m):
for i in range(j,s+1):
print(i)
j=int(input("a:"))
s=int(input("b:"))
u=(j,s)
printrange(u)
It is very simple and easy to understand the concept, thank you so much.
def passorfail(mark):
if(mark>=35):
print("pass")
else:
print("fail")
passorfail(34)
Def exam () :
a = int ( input ( " Enter ur mark ))
b = 35
If a < b :
Print (" sry you are fail ")
else :
Print ( " you are pass ")
Exam ()
Error ("enter ur marks ))
@@jieshwargamer77this in the method
.
def passorfail(k):
if(k
def findpassorfail(user):
user=int(input("Check whether pass or fail : "))
if user>=35:
print("You have passed")
else:
print("You have failed")
findpassorfail(user)
def PassorFail(a):
if(a>=35):
if(a%2 == 0):
print(a,"is pass and it is even")
else:
print(a,"is fail and it s Odd')
a = float(input())
passorFail(a)
*Bro, we want more videos about HTML*
In ur given code even if I got the pass mark but if the number is odd then if statement is wrong and it will print the else so the logic is missing
def PassorFail(a):
a = float(a)
if a >= 35:
if a % 2 == 0:
print(f"{int(a)} is pass and it is even")
else:
print(f"{int(a)} is pass and it is odd")
else:
print(f"{a:.2f} is fail")
# Taking input from the user
grade = input("Enter the grade: ")
PassorFail(grade)
Javascript video podunga bro
th-cam.com/video/poo0BXryffI/w-d-xo.htmlsi=GLI777OTvRPFk-Gv
def findevenorodd(k):
if(k%2==0):
print("even")
else:
print("odd")
a=int(input("enter the number :"))
findevenorodd(a)
mark=int(input("Enter your mark:"))
def findpassorfail(mark):
if(mark>=35):
print("Pass")
else:
print("Fail")
findpassorfail(mark)
Output:
Enter your mark:40
Pass
Bro even or odd nu find pannala paarunga
def findpassorfail(mark):
print("mark:",mark)
if mark
def findpassorfail(b):
if(b
def find():
num=int(input("find:"))
a=2
if(num%a==0):
print("even")
else:
print("odd")
find()
Great Explanation Bro
You Deserve
Thank you
def sub():
a=int(input("enter a:"))
b=int(input(enter b:"))
print(a-b)
sub()
def findevenorodd(num):
if(num%2==0):
print("even")
else:
print("odd")
findevenorodd(10)
tested code for even or odd
def even_odd():
num=int(input("enter a:"))
if (num%2==0): #if even div by 2
print("number is even")
else:
print("number is odd")
even_odd()
def findevenorodd(user):
user=int(input("Check whether the number is even or odd : "))
if user%2==0:
print("It is even")
else:
print("It is odd")
findevenorodd(user)
def findpassorfail(a):
if(a>=35):
print("pass")
else:
print("fail")
n=int(input("enter the mark:"))
findpassorfail(n)
sir vunngalaa Mari enaku yarumeaaa solitharlaaa sir. Nanum neriyaaaa video pathaaa ethuvumaaa puriyalaaa negatha
a superaaaa solikoduthigaaa sir thanks ❤ gethuuu sir negaaa
def findevenorodd(g):
if(g%2==0):
print("even")
else:
print("odd")
if(g>=35):
print("pass")
else:
print("fail")
a=100
findevenorodd(a)
Hello bro question 2 I did not get the even number when input =10 it shows only odd pls clarify meeee
Code send pannuga bro
def printrange(a,b):
for i in range(a,b):
print(i,end=" ")
a=int(input("Enter starting range"))
b=int(input("Enter ending range"))
printrange(a,b)
ithu crct thana bro
def findevenorodd(num):
if(num%2==0):
print(f"The Entered number {num} is even")
else:
print(f"The Entered number {num} is odd")
findevenorodd(int(input("Enter the number to find its even or odd :")))
Hi bro I have easily to understand the function. But OOPS concepts, I cannot understand so pls explain in next video bro....
Bro check if it is Right.If user is given input.
def findpassorfail()
Mark=int(input("Enter the mark"))
If Mark>=35 :
Print("You are pass")
else:
Print("Fail ")
findpassorfail()
Bro All are case sensitive, hence you should use small letter for if, print.
def findpassorfail():
mark = int(input("enter your mark: "))
if mark >= 75:
print("you are pass")
else:
print("Fail")
the above one is proper code
Thank you bro intha maarri naraya vedio podunga yenga support yennaikkume erukkum
def add():
a=int(input("Enter a:"))
b=int(input("Enter b:"))
print("Total :",a+b)
def sub():
a=int(input("Enter a:"))
b=int(input("Enter b:"))
print("After deduction :",a - b)
def mul():
a=int(input("Enter a:"))
b=int(input("Enter b:"))
print("Product_Value :",a * b)
def div():
a=int(input("Enter a:"))
b=int(input("Enter b:"))
print(("Divide :",a/b))
add()
sub()
mul()
div()
clearly understand super bro
Thank you
# create a fn pass or fail if mark > than 35 pass or else fail
def passorfail():
mark = float(input("enter mark:"))
if mark >= 35:
print("pass")
else:
print("fail")
passorfail()
Brother Data structure and algorithm video podunga
bro well explained and bro can you explain function prototypes
More concepts in python podunga naaa
Java course full course podunga Anna
Anneyyy tanks neyyyy 💓
def findevenorodd():
a=int(input("Enter a:"))
if(a%2==0):
print("Even")
else:
print("Odd")
findevenorodd()
Bro I tried this and it came well i need to know why we need to type b%2==0 , and why we need to add b in the def function(b) at the start and in end we are calling a in the def function(a) instead we can easily call a and get the output can you please explain or anyone seeing this explain?? 22:30
Bro will u pls upload videos related to class12 matric computer science syllabus
Bro for i in range (r1,r2+1 )
Poda thevailaya because a to b full ah print pana solirukaga apo 21 to 31 um varnumla ?
Like pycharm IDE
Program type panni run kudutha oru time mattum dhan work aaguma?
Second time Vera Input kudukanumna marupadiyum run pannanuma? Can anyone tell pls?
Yess
Javascript solikudunga
How can I decompile a compiled .pyc file into a .py file? any one tell me
Bro explain in English
def add():
a=int(input("Enter the number : "))
b=int(input("Enter the number : "))
print("Add:", a+b)
add()
def sub():
a=int(input("Enter the number : "))
b=int(input("Enter the number : "))
print("Sub:", a-b)
sub()
def mul():
a=int(input("Enter the number : "))
b=int(input("Enter the number : "))
print("Mul:", a*b)
mul()
def div():
a=int(input("Enter the number : "))
b=int(input("Enter the number : "))
print("Div:", a/b)
div()
2)
def findevenorodd():
if(n%2==0):
print("It is Even")
else:
print("It is Odd")
n=int(input("Enter the Number: "))
findevenorodd()
def printrange(a,b):
for i in range(a,b):
print(i)
printrange(
a=int(input("a: ")),
b=int(input("b: "))
)