Python Function | addition and subtraction | python programming | tutorial #python #pythonlearning

preview_player
Показать описание
Create a function calculation () such that
it can accept two variables value and calculate
the addition and subtraction of them. And also it
must return both addition and subtraction in a
single return call.

code:
def calculation(x,y):
addition = x+y
subtraction = x-y
return addition,subtraction
c,d = calculation(20,10)
print("addition and subtraction of number is: ",c,d)

output:
addition and subtraction of number is: 30 10

#pythonlearning #computerscience #coder #phyton #python3 #pythoncode #pythonprogramming
Рекомендации по теме
Комментарии
Автор

Can I create a GUI of something like this

PACESETTERTHABO
Автор

Are bhai tere like button k piche kya chup gya h phle use clear kro

tashuMam