Part 3 | Functions | Python Malayalam Tutorial For Beginners | Python Coding Challenge
Вставка
- Опубліковано 20 чер 2020
- 24/7 FREE Telegram Support! Sign Up Now:
study.brototype.com/pythondev...
In this tutorial we will discuss functions.
Exclusive Membership Explanation Video: • Learn Coding Easily Fr...
Link to 100K Coding Challenge:
• 100K Coding Challenge
Link to part 1 video : • Part 1 | Introduction ...
Link to part 2 video : • Part 2 | Lists,Control...
00:40 Function
11:29 Global variable ,Local variable
16:18 key word argument
17:58 Default argument
21:29 Dictionaries
About us:
#Brototype (Former Crossroads) is Kerala's #1 tech UA-cam channel for students looking to frame a good career in the tech industry. Our mission is to make a positive change in the lives of people by providing them with valuable information and actionable steps.
In this channel,We help you develop coding skills for free by providing various programming tutorials & tech-career topics in Malayalam, that helps you achieve a job in the IT industry.
To get 24/7 Technical support while watching our tutorials, Sign up for 6 months Brototype Malayalam (Former Crossroads) Exclusive Membership,
Link to Sign up: rzp.io/l/crossroads-6Months-E...
NRI(s) can make payment via bank transfer
Account No: 423105500048
Name: PACKAPEER ACADEMY PRIVATE LIMITED
IFSC: ICIC0004231
Branch: Hilite City Kozhikode
For Enquires, Contact: Ameer: 7034395811
Further, if you wish to study offline with us in an office environment, You can enroll for Brocamp, Which is a 6-month offline training program where you learn coding skills & let you pay the course fee after placement.
Brocamp (former SPS): Visit brototype.in/
Call: 7902606117
Want to connect with Nikhil Kilivayil personally?
check: getmytym.com/nikhilkilivayil
Connect us on Social Media:
Instagram: / brototype.malayalam
Linkedin: / brototype
Facebook: / brototypemalayalam
Connect Nikhil Kilivayi on Social Media:
Instagram: / nikhilkilivayil
Linkedin: / nikhilkilivayil
Facebook: / nikhilkilivayil1
ingane oru kidukachi channel thodangiya karyam njn ipazha arinje. ithrem naal codingn vendi hindi channels kashtapett kand budhimutti orupaad. Anyway great initiative . :) :) :)
thanks man! 🙌🏼
Njaumm hindi channelbokke kandu Hindi padichu pgmming ithu varae padichilla. Avasanam cross roads ill ethiyapoyannu 5 kollamayiit enthannu padikkunathnnu mabasilayathu😁😁
heheh! Finally 🙌🏼
# Below are four different codes which shows the examples of different types of functions
method=int(input("Enter corresponding number for if you want to execute the sum in the desired type
1- With arguments are with return
2- With arguments without return
3- Without arguments with return
4- Without argument without return
Type your option: "))
if method == 1:
# Example of with arguments are with return
def sum(a,b):
result=a+b
return result
answer=sum(10,10)
print (f"The answer is {sum(10,10)}")
elif method == 2:
# Example for with arguments without return
def sum(a,b):
result=a+b
print("The answer is ",result)
sum(10,10)
elif method == 3:
# Example with without arguments with return
a = 10
b = 10
def sum():
result=a+b
return result
answer=sum()
print ("The answer is "+str(answer))
elif method == 4:
# Example without argument without return
a=10
b=10
def sum():
result=a+b
line=f"The answer is {result}"
print(line)
sum()
else:
print("You can select one of the given option only")
Its feeling super easy to code in Python. Thank u Crossroads Team for providing these videos
100K coding challengil ullathu polee daily tips add cheyythu kudee
Simple calculator using python function
print("calculaor")
num1=int(input("enter two numbers:"))
num2=int(input())
print("
1.addition""
2.substraction""
3.multiplication""
4.division")
option=int(input("choose your option:"))
def add(num1,num2):
sum=num1+num2
print("The sum is: "+str(sum))
def sub(num1,num2):
subr=num1-num2
print("The subraction result is: "+str(subr))
def multi(num1,num2):
mul=num1*num2
print("The multiplication result is: "+str(mul))
def divi(num1,num2):
div=num1/num2
print("The division result is: "+str(div))
if(option==1):
add(num1,num2)
elif(option==2):
sub(num1,num2)
elif(option==3):
multi(num1,num2)
elif(option==4):
divi(num1,num2)
else:
print("Please select the 4 options only !!")
# 4 types of function in python
# 1.No argument, No return value
def sample():
print("hello")
sample()
# 2.No argument, with return value
def sample1():
a=10
b=20
sum = a + b
return sum
result = sample1()
print(result)
# 3.with argument, no return value
def sample2(value):
print("value is: " +str(value))
sample2(123)
# 3.with argument, with return value
def sample3(num1,num2):
sum = num1 + num2
return sum
result1 = sample3(12,24)
print(result1)
I was following eduerka and tech with Tim yt channels for python...but malayalathile class kooduthal understandable aanu...kudos crossroads
Telusko is the best
edureka nte paid course edtheeerno njhan
@@ashiqueaizeb certificate kittiyo
Thank You Team CROSSROADS
Good content good presentation
Best👍💯👍💯👍💯 class🎊🎊
Thank you sir for this valuable information
#without arguement without return
def sum():
a=10
b=20
c=a+b
print(c)
sum()
#with arguement without return
def sum(a,b):
c=a+b
print(c)
sum(10,20)
#without arguement with return
def sum():
a=10
b=20
c=a+b
return c
result=sum()
print(result)
#with arguement with return
def sum(a,b):
c=a+b
return c
result=sum(10,20)
print(result)
# just a small shortcut that might help you guys:
# for eg:
name = "Crossroads"
age = 1
# so ...usually.. you print like this
:
# print("Hi " + name + " so you are almost" + str(age) + " year old!")
# instead, this is the shorthand trick ..if you want to call it
print(f'Hi {name} so you are almost {age} year old')
# Try it out and see what suits you!
tnx :)
@@redstoneninja3375 :) no probs
print('1.without arg and without return')
a=33
b=12
def mult():
c=a+b
print(c)
mult()
print("2. with argument without return")
def mult(a,b):
c=a*b
print(c)
mult(2,3)
print("3.without argument with return")
def mult():
c=a/b
return c
c=mult()
print(c)
print("4. with argument with return")
def mult(x,y):
z=x-y
return z
z=mult(88,18)
print(z)
# With arguement but without return value
def sum_of_numbers(num1, num2):
sum = num1+num2
print(sum)
sum_of_numbers(1, 2)
# With arguement and return value
def sum_of_numbers():
num1 = 1
num2 = 2
sum = num1+num2
print(sum)
sum_of_numbers()
# With arguement and return value
def sum_of_numbers(num1, num2):
sum = num1+num2
return sum
print(sum_of_numbers(1, 2))
# Without arguement with return value
def sum_of_numbers():
num1 = 1
num2 = 2
sum = num1+num2
return sum
print(sum_of_numbers())
thanks for taking so much effort sir
❤️🥰
Sir i hope you will be covering the topics like python decorators and generators in this course.Thank you for these awesome tutorials.
Very very informative
Thanks bro
#with argumet without return value
def add(a,b):
c=a+b
print(c)
add(12,10)
#without argumet without return value
def add():
a=10
b=20
c=a+b
print(c)
add()
#with argumet with return value
def add(a,b):
c=a+b
return c
print(add(30,10))
#without argumet with return value
def add():
a=30
b=40
return a+b
print(add())
Thank u so much sir
Most welcome
Good information
Good teaching sir..
Thanks bro
kidu
How can increment the global variable value in function?
function without argument and return value
def fun():
print("hello bro")
fun()
function with argument and no return value
def a(num1,num2):
result=int(num1)+int(num2)
print("result is " +str(result))
a(8,8)
function with argument and return value
def b(num3,num4):
result1=int(num3)+int(num4)
return result1
result1= b(8,10)
print("result is" +str(result1))
function without argument and with return value
def add():
num5=10
num6=20
result2=int(num5)+int(num6)
return result2
solution=add()
print("result is" +str(solution))
Always add description box links of previous parts. Make easy access for late viewers
Noted 👍🏼
length = int(input("Enter The Length : "))
breadth = int(input("Enter The Breadth : "))
def fun1(): # No arguments nor return values
print("Function 1 : ", (length * breadth))
def fun2(): # No arguments but has a return value
return length * breadth
def fun3(side1, side2): # Has Both arguments as well as return values
return side1 * side2
def fun4(side1, side2): # Has Argument but no return value
print("Function 4 : ", (length * breadth))
fun1()
print("Function 2 : ",fun2())
print("Function 3 : ",fun3(length,breadth))
fun4(length,breadth)
Good
# Calculater program using functions
num1 = int(input("Enter two numbers : "))
num2 = int(input())
# Function with argument without return value
def sum(num1, num2):
result = num1 + num2
print("Result is : " + str(result))
# Function with argument and return value
def minus(a, b):
result = a - b
return (result)
# Function without argument , with return value
def multiplication():
result = num1 * num2
return (result)
# Function without argument , without return value
def division():
result = num1 / num2
print("Result is : " + str(result))
choice = int(input("Select your choice :
1.Addition
2.Subraction
3.Multiplication
4.Division
"))
if choice == 1:
sum(num1, num2)
elif choice == 2:
result = minus(num1, num2)
print("Result is : " + str(result))
elif choice == 3:
result = multiplication()
print("result is : " + str(result))
elif choice == 4:
division()
🥰👍
njan english tutorial noki padikuka aayirunnu but ath thudakathil kollam but pinne boor aayi but crossroads boor aakunnilla ennik ishtaayi
♥️
#function without argument
a=10
b=20
def sum1():
res1 = a+b
print("sum = "+ str(res1))
sum1()
#function with one argument
def sum2(num):
res2 = num+50
print("sum = "+ str(res2))
sum2(10)
#function wuth 2 arguments
def sum3(num1,num2):
res3 = num1+num2
print("sum = "+ str(res3))
sum3(30,40)
#fuction with return value
def sum4(num1, num2):
res4=num1+num2
return res4
result= sum4(50,30)
print("sum = "+ str(result))
Super class
👌👌👌
👍
Tnnx
😍😍
x = lambda a,b : a + b
x(20,30)
Programing padippikkan ariyaatha orupaad teachermar nd
Ithoke kanumbo avre edth kinattilidaan thonnune😆
😅
Can I get the certificate after the completion of the whole tutorial?
👍🔥❤
#Example of with arguments with return
def add(num1,num2):
add=num1+num2
return result
result=add(10,20)
print(result)
#Example of with arguments without return
def add(num1,num2):
res=num1+num2
print(res)
add(20,20)
#Example with without arguments with return
a=20
b=30
sum=a+b
print(sum)
#Example without argument without return
a=10
b=20
def sum():
result=a+b
return result
answer=sum()
print(answer)
function print() kodukkan pattumo 🤔🤔🤔
poli
ആദ്യം പഠിപ്പിച്ചിരുന്ന രീതി എനിക്ക് നന്നായിട്ട് ഇഷ്ടപ്പെട്ടിരുന്നു പക്ഷേ ഇതെന്തോ മനസ്സിലാകാത്ത പോലെ . എന്തോ ഒരു കുറവ് ഫീൽ ചെയ്യുന്നത് I don't know why
Enikum anubhavapettu... learning inta edayil oru kadha parachilo, thamashayo eleel oru rasam illaa
@@ajmalbinnizam aaaa
Kadhayellam basic codingil paranjallonu vachu ithil just kurachatha. Ithu vegam theerthu web development and other applications oke varumbo kure kadha parayan undavum. Basic coding paranja kadha thanne ithil paranju boradipikanda vijarichatha. Ithu pettannagu theerthitu web app oke develop cheyyaumbo kure stories oke varum. Dnt wrry.
@@BrototypeMalayalam ok thanks
@@BrototypeMalayalam chilath manasilakunnund chilath confusion ann ennalum koyapom ella i will try
Sir rasberry pi or other microcontroller programing cheyiamo
# Four functions
# Function one no arguments
def func1():
numberone = 10
numbertwo = 20
sum = numberone + numbertwo
print(sum)
# Function two with arguments
def func2(numberone=100, numbertwo=200):
sum = numberone + numbertwo
print(sum)
# Function one arguments passing
def fucnc3(numberone, numbertwo):
sum = numberone + numbertwo
print(sum)
# Function with return value
def func4(numberone, numbertwo):
sum = numberone + numbertwo
return sum
# functions calling
func1()
func2()
fucnc3(100, 777)
rfunction = func4(555, 777)
print(rfunction)
Python base projects koode onnu series pole kanikuo,, appol korachoode manassil akan patum, evide oke use cheyam enn..
Calculator project video nammal cheyum👍
👍👍👍🙌
✌️
num1 = 5
num2 = 5
#No argument No return value
def sum() :
print("sum")
sum()
#No argument with return value
def sub():
a= 3
b= 5
add = a+b
return add
result = sub()
print (result)
#with argument no return value
def mul(num1, num2):
mul = num1*num2
print(mul)
mul(num1,num2)
#with argument with return value
def div(num1,num2):
if num2 ==0:
print("error")
else:
div = num1/num2
return div
result = div(num1,num2)
print(result)
3rd.day.......
easy ayi ellama mansillakunundu
Thanks to hear that word's
🌹🌹👍👍
Python program with 4 Type Function (finding sum)
#Function with Argument Without return Value
def sum(num1,num2):
print(num1+num2)
sum(12,13)
#Function with Argument With return Value
def sum1(num1,num2):
return(num1+num2)
print(sum1(34,44))
#Function without Argument Without return Value
def sum2():
sum=1+2
print(sum)
sum2()
#Function with return value Without argument
def sum3():
sum=20+30
return(sum)
print(sum3())
function 1:
def sum11():
a = int(input("enter you first number"))
b = int(input("enter you second number"))
sum=a + b
return sum
print(sum11())
function 2:
def sum11(a=int(input("enter you first number")), b=int(input("enter you second number"))):
Sum1 = a + b
print(Sum1)
sum11()
function 3:
def sum11(a=int(input("enter you first number")), b=int(input("enter you second number"))):
sum=a+b
return sum
result=sum11()
print( result)
function 4:
def sum11():
a = int(input("enter you first number"))
b = int(input("enter you second number"))
sum=a+b
print(sum)
sum11()
Assume you want to build two functions for discounting products on
a website. Function number 1 is for student discount which discounts
the current price to 10%. Function number 2 is for additional discount
for regular buyers which discounts an additional 5% on the current
student discounted price. Depending on the situation, we want to be
able to apply both the discounts on the products. Design the above
two mentioned functions and apply them both simultaneously on
the price.
Bro idhinte code onn parannu tharaamo
got solution?
def hello():
print("without argument without return value")
def hello1(a,b):
print("with "+a+" without " + b+" value")
def hello2():
a="without Argument"
b=" with return value"
sum=a+b
return sum
def hello3(a,b):
sum=("with "+a)+("with"+b)
return sum
hello()
hello1("Argument","Return")
sum=hello2()
print(sum)
add=hello3("argument and ","return value")
print(add)
*4 TYPE OF FUNCTIONS* # function without argument and without return value
def function():
side1 = int(input("Enter the side of the Square : "))
area1 = side1 * side1
print("Area of the square is : " + str(area1))
function()
# function with argument and without return value
def function2(value):
area2 = value * value
print("Area of the square is : " + str(area2))
side2 = int(input("Enter the side of the Square : "))
function2(side2)
# function without argument and with return value
def function3():
side3 = int(input("Enter the side of the Square : "))
area3 = side3 * side3
return area3
area3 = function3()
print("Area of the square is : " + str(area3))
# function with argument and with return value
def function4(value):
area = value * value
return area
side = int(input("Enter the side of the Square :"))
area = function4(side)
print("Area of the square is : " + str(area))
Function with No Arguments, and No Return Value
def Adding():
a = 20
b = 30
Sum = a + b
print("After Calling the Function:", Sum)
Adding()
Function with No Arguments, and with Return Value
def Sum():
a = 10
b = 25
Sum = a * b
return Sum
print("After Calling the Multiplication Function: ", Sum())
Function with Arguments, and NO Return Value
def Sum(a, b):
Sum = a * b
print("After Calling the Function:", Sum)
Sum(10, 20)
Function with Arguments, and with Return Value
def Addition(a, b):
Sum = a + b
return Sum
Chettha thx for everything . Best laptop for programming onne cheyyavo
അവരുടെ ചാനലിൽ und
video ind.. kand nokku!
ua-cam.com/video/ka0WI9yg1RY/v-deo.html
Sir python machine learning oru series aayit cheyaamo🙏
Cheyyam
function without argument without return value :
def sum():
num1 = int(input("Enter two numbers"))
num2 = int(input())
result = num1+num2
print("Result is: " + str(result))
sum()
function with argument without return value :
def sample(num1, num2):
sum=num1+num2
print(sum)
num=int(input("Enter two numbers"))
nu=int(input())
sample(nu, num)
function with argument with return value :
def sum(num1, num2):
result = num1 + num2
return result
n1 = int(input("Enter two numbers"))
n2 = int(input())
answer = sum(n1, n2)
print("Result is: " + str(answer))
function with return value without argument
:
def sum():
num1=int(input("Enter two numbers"))
num2=int(input())
sum=num1+num2
return sum
result = sum()
print("Result is: " + str(result))
Iam an 8th standard student
enikk oru tech base aayittulla career inte road map paranju tharumoo
eniik java, c enniva ariyaam,. njaan 100k coding challenge padichathu kaaranamaan.
njaan ningalude web designing adutha 20 divasathinullil padichedukkum
Phonil coding padikkunathum computeril padikkunathum thammil valiya vyathyasam undakumo.
Better lap annu
Function with argument , without return value :
def sample(num1, num2):
sum = num1 + num2
print("sum is "+str(sum))
sample(int(input("Enter 1 st number")), int(input("Enter 2 nd number")))
Function without argument , without return value :
num1=int(input("Enter 1st value"))
num2=int(input("Enter 2nd value"))
def sample():
sum=num1+num2
print("sum is "+str(sum))
sample()
Function without argument , with return value:
num1=int(input("Enter 1 st number"))
num2=int(input("Enter 2 nd number"))
def sample():
sum=num1+num2
return sum
result = sample()
print("sum is "+str(result))
Function with argument , with return value:
def sample(num1,num2):
sum=num1+num2
return sum
result = sample(int(input("enter 1st number")),int(input("enter 2 nd number")))
print("sum is "+str(result))
value=10
def sample():
v=value+1
print(value)
sample()
print(value)
This code gives output 10 and 10 only,
but in my understanding it should print 11 as i am adding 1 to the global variable inside the function and then printing it ,(can you please correct this)
Connect to our team, we will help you +919061748014
❤️
Printil value alle print akiyekunne v print chydu noku bro
def sample(num1,num2):
sum=num1+num2
return sum
result=sample(10,15)
print(result)
ivide enthukonde print(str(result)) ingane cheyyunnilla please explain
pls ask your doubts in telegram group, our technical team is only available in telegram group.
e pythonum nodjus thamil bantham undo
print cheyumbo comma itttal mathille ?
concatenation inu pakaram
Yes
# 1) Function without argument and return type
def sum():
num1=1
num2=2
result=num1+num2
print("Sum = "+ str(result))
sum()
# 2) Function with argument and without return type
def sum1(num1,num2):
result=num1+num2
print("Sum = "+ str(result))
num1=3
num2=4
sum1(num1,num2)
# 3) Function without argument and with return type
def sum2():
num1=5
num2=6
result=num1+num2
return result
s=sum2()
print("Sum = "+ str(s))
# 4) Function with argument and return type
def sum3(num1, num2):
result=num1+num2
return result
num1=7
num2=8
p=sum3(num1,num2)
print("Sum = "+str(p))
# function 1 with argument with return value
def sample(num1, num2):
sum = num1 + num2
return sum
a = int(input('Enter two numbers:
'))
b = int(input())
print('-------')
sample(a, b)
print(result)
# function 2 with argument without return value
def sample(num1,num2):
sum=num1+num2
print(sum)
a = int(input('Enter two numbers:
'))
b = int(input())
print('-------')
result = sample(a, b)
# function 3 without argument with return value
def sample(sum):
a = int(input('Enter two numbers:
'))
b = int(input())
print('-------')
sum=a+b
return sum
result =sample(sum)
print(result)
# function 4 without argument without return value
def sample ():
a = int(input('Enter two numbers:
'))
b = int(input())
print('-------')
sum = a + b
print(sum)
sample()
എനിക്ക് ഒരു ഉപകാരം ചെയ്യുമോ dib file formate എങ്ങിനെ clear ചെയാം
#with argument without return value
def sum(num1, num2):
sum = num1+num2
print sum
sum(int(input("num1
")), int(input("num2
")))
#with no argument with return value
def sum():
num1=int(input("num1
"))
num2=int(input("num2
"))
sum = num1+num2
return sum
result = sum()
print result
#without argument and return value
def sum():
num1=int(input("num1
"))
num2=int(input("num2
"))
sum = num1+num2
print (sum)
sum()
# with argument and return value
def sum(num1 , num2):
sum = num1+num2
return sum
result = sum(int(input("num1
")),int(input("num2
")))
print (result)
Brother......game development kurich class conduct cheyo...
Will try. kure tutorials pending ind.
@@BrototypeMalayalam brother... pettan onum venda.... ellaum tutorial kazhijitt mathi tto. And thank you to accept my request and Keep going my brother.
#with argument with return value
def sum(num1,num2):
k=num1+num2
return k
num1=int(input("enter first number:"))
num2=int(input("enter second number:"))
k=sum(num1,num2)
print("the sum is: "+str(k))
------------------------------------------------------------------------------------------------------------
#without argument with return value
def sum():
num1=int(input("enter first number:"))
num2=int(input("enter second number:"))
k=num1+num2
return k
c=sum()
print("the sum is: "+str(c))
------------------------------------------------------------------------------------------------------------
#with argument without return value
def sum(a,b):
c=a+b
print("the sum is: "+str(c))
num1=int(input("enter first number:"))
num2=int(input("enter second number:"))
sum(num1,num2)
-----------------------------------------------------------------------------------------------------------
#without argument without return value
def sum():
num1=int(input("enter first number:"))
num2=int(input("enter second number"))
c=num1+num2
print("thee sum is: "+str(c))
sum()
ethil stringlott conert cheyunnelum nallath just orr comma use chyune alle---> print("My name is ", name, "and age is : ", age)
Join the Learning Club, our tech support will help you. Join here: brototype.com/learningclub/org/fullstack/?ref=ytdescription
def message():
print("Welcome To Simple Calculator.")
def prompt(text):
return input(text)
def add(val1=0, val2=0):
if operation == "1":
sum = val1+val2
elif operation == "2":
sum = val1 - val2
elif operation == "3":
sum = val1 * val2
elif operation == "4":
sum = val1 / val2
else:
sum = "Invalid Option"
return sum
def answer(sum):
print(sum)
def menu():
print("Press 1 : Add")
print("Press 2 : Substract")
print("Press 3: Multiplication")
print("Press 4: Divide")
message()
val1 = prompt("Enter First Number:")
val2 = prompt("Enter Secont Number")
menu()
operation = prompt("Select Operation:")
sum = add(int(val1), int(val2))
answer(sum)
ഇൻഡന്റേഷൻ Indentation??? അല്ലേ??
Thank you sir❤️
❤️
#function without aurgument with return value
def calculate_sum():
num1 = 5
num2 = 10
sum = num1 + num2
return sum
result = calculate_sum()
print(result)
#function without aurgument without return value
def my_function():
print("Hello, World!")
my_function()
#function with aurgumanent without return value
def sample(name):
print("Hello, " + name + "!")
sample("Althaf")
#function without aurgument with return value
def hello():
return "Hello, World!"
message = hello()
# Print the returned value
print(message)
23:50 അപ്പോൾ ആ name ,place എന്നത് കാണിക്കാതെ വെറും "നിഖിൽ,മലപ്പുറം" എങ്ങനെ പ്രിന്റ് ചെയ്യും?
4th linil place print cheyyunnund, athupole print cheythal mathi.
(1) WITH ARGUMENT AND WITH RETURN VALUE
def display(num1, num2):
total = num1 + num2
return total
result = (display(20,23))
print(result)
(2) WITH ARGUMENT AND WITHOUT RETURN VALUE
def brought(Beef, Chicken):
prize = Beef + Chicken
print(prize)
brought(Beef=350,Chicken=300)
(3) WITHOUT ARGUMENT AND WITH RETURN VALUE
def display():
num1 = 20
num2 = 30
calculate = num1 + num2
print(calculate)
return calculate
display()
(4) WITHOUT ARGUMENT AND WITHOUT RETURN VALUE
def sample():
potato = 100
tomato = 100
total = potato + tomato
print(total)
sample()
Sir is there any chance to meet you if there please send reply
You may contact on Instagram IG: nikhilkilivayil
Function with No Arguments, and No Return Value
def Calculator():
num1 = 10
num2 = 5
Sum = num1+ num2
print("Answer"+str(sum))
Calculator()
Function with No Arguments, and with Return Value
def Calculator():
num1 = 10
num2= 5
Sum = num1 + num2
return Sum
Calculaor()
print("Answer"+str(sum))
Function with Arguments, and NO Return Value
def Sum(num1, num2):
Sum = num1+num2
Calculator
print("Answer"+ str(Sum))
Sum(10, 20)
Function with Arguments, and Return Value
def Calculator(num1, num2):
Sum = num1+num2
return Sum
Sum=Calculator(10,5)
print("Answer"+sum)
Django series thudagunnille
will do soon
print("**NO ARGUMENT NO RETURN VALUE**")
def display1():
num1 = int(input("Enter two numbers: "))
num2 = int(input())
sum = num1 + num2
print("Sum is " + str(sum))
display1()
print("**WITH ARGUMENT NO RETURN VALUE**")
def display2(value1, value2):
sum = value1 + value2
print("Sum is " + str(sum))
num1 = int(input("Enter two numbers: "))
num2 = int(input())
display2(num1, num2)
print("**WITHOUT ARGUMENT WITH RETURN VALUE**")
def display3():
num1 = int(input("Enter two numbers: "))
num2 = int(input())
return (num1+num2)
sum = display3()
print("Sum is " + str(sum))
print("**WITH ARGUMENT WITH RETURN VALUE**")
def display4(value1, value2):
return (value1+value2)
num1 = int(input("Enter two numbers: "))
num2 = int(input())
sum = display4(num1, num2)
print("Sum is " + str(sum))
Age intai avidai int allai varendath?
yes
Bro ente kayil lap illa enikke phonil code cheyan pattumooo
Cheyam but bhuthimutt annu
Better lap annu
@@BrototypeMalayalam ethe app anne enne pareyamoo.
@@bver8536 pyroid 3
From play store
Broo video okkee kollam but ee code okke enganyaa kanatha padikkunee
Basic coding inte tutorial evidunnaa kittum ?
ua-cam.com/video/pDmEYRhyusU/v-deo.html
c=str(input("+,-,*,/"))
d=str.lower(input("int or float? "))
if d==("int"):
if c==("+"):
a = int(input("1 namber? "))
b = int(input("2 namber? "))
sum = (a+b)
print(sum)
elif c==("-"):
a = int(input("1 namber? "))
b = int(input("2 namber? "))
sum = (a - b)
print(sum)
elif c==("*"):
b = int(input("2 namber? "))
a = int(input("1 namber? "))
sum = (a * b)
print(sum)
elif c==("/"):
a = int(input("1 namber? "))
b = int(input("2 namber? "))
sum = (a / b)
print(sum)
if d==("float"):
if c==("+"):
a = int(input("1 namber? "))
b = int(input("2 namber? "))
sum = (a+b)
print(sum)
elif c==("-"):
a = int(input("1 namber? "))
b = int(input("2 namber? "))
sum = (a - b)
print(sum)
elif c==("*"):
b = int(input("2 namber? "))
a = int(input("1 namber? "))
sum = (a * b)
print(sum)
elif c==("/"):
a = int(input("1 namber? "))
b = int(input("2 namber? "))
sum = (a / b)
print(sum)
Tuples il search cheyyuna function ethaa ????
Join the Learning Club, our tech support will help you. Join here: brototype.com/learningclub/org/fullstack/?ref=ytdescription
@BrototypeMalayalam ente bro aa groupil njn pandee join aakkeekk athil oru correct reply aarum tharathoonda ivde choiche. Onn answer tharunnathinn entha problem . Athinte koode ee promotion cheytha poore . Enthaan bro . Brototypinte ella tele channelilum njn joined aan. Ella channelum subscribedum aan . Almost crossroads muthal njn ninghale follow cheyyunnund . Ee aduthaayittaan ingane ulla replies okkke varaan thudangiyath. Enthaan bro oru doubt chothichaal ingene🤌🏻🤦🏻.
Keep uploading videos bro, it helped me lot.
Great thanks to all your team.
Keep going.✨✨✨💥✌️✌️
Pass statement nthanenn noki erangiyatha ???
Pass statement is a null statement
#function with arguments without return value
def sum(a, b):
print(a + b)
sum(4, 5)
#function without argument or return value
def sum2():
a = 5
b = 10
print(a + b)
sum2()
#function with arguments and return value
def sum3(c, d):
return (c + d)
print(sum3(10, 20))
#function without arguments having return value
def sum4():
a = 25
b = 35
return (a + b)
print(sum4())
ENTER TWO NUMBERS TO ADDITION
10
20
FUNCTION WITHOUT ARGUMENTS AND RETURN VALUE
30
FUNCTION WITH ARGUMENTS WITHOUT RETURN VALUE
30
FUNCTION WITHOUT ARGUMENTS WITH RETURN VALUE
30
FUNCTION WITH ARGUMENTS AND RETURN VALUE
30
number1 = int(input("ENTER TWO NUMBERS TO ADDITION
"))
number2 = int(input())
def sum1():
print("FUNCTION WITHOUT ARGUMENTS AND RETURN VALUE")
sum = number1 + number2
print(sum)
def sum2(num1, num2):
print("FUNCTION WITH ARGUMENTS WITHOUT RETURN VALUE")
sum = num1 + num2
print(sum)
def sum3():
print("FUNCTION WITHOUT ARGUMENTS WITH RETURN VALUE")
sum = number1 + number2
return sum
def sum4(num1, num2):
print("FUNCTION WITH ARGUMENTS AND RETURN VALUE")
sum = num1 + num2
return sum
sum1()
sum2(number1, number2)
result1 = sum3()
print(result1)
result2 = sum4(number1, number2)
print(result2)
basic coding tutorials evidyane ullathe!!!
100k coding challenge
100k Coding Challenge
ua-cam.com/play/PLY-ecO2csVHeKaBI7lAM1jbIPU8K6fUxY.html
You Used Sum As A Variable Rather Than As A Function
🤟hhajar
async def cheyyuvo
manasilayilla!
enthanu udeshichathu?
# function 1 no argument and no return
def hey():
print("hello this is no argument no return function")
# funtion 2 with argument no return
def hellow(name):
print("Hellow, Your name is " + name)
# funtion 3 with argument with reutrn
def multi(num1, num2):
return num1 * num2
# function 4 no argument with return
def message():
messag = "Please consider this as a default alert message"
return messag
# 1
hey()
# 2
hellow("shafi")
# 3
print(multi(25, 12))
# 4
print(message())
Bro ente age 17 anne njan science anne eduthekkunne +1.enikke ethe padikamo.
Manasundengil... Put efforts and you'll get success... Njanum oru +2 vidhyarthi aan(2020-21 batch). But by effort and determination, I make websites. Because of crossroads.🥰
Definition ezhuthirr colon kodukunna enthinan
Connect our team in Telegram
7034395811, our team will help you