Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
func mast
print("meri marzi jo bhi likhu") print("functions ke saath khelenge") opr=int(input("konsi opr perform karna chahoge\n 1.add 2.sub 3.mul\n")) a=int(input("enter 1st no\n")) b=int(input ("enter 2nd no\n")) def add(a,b): return a+b def sub(a,b): return a-b def mul(a,b): return a*b if opr==1: for i in range(10): print(add(a,b)) elif opr==2: for i in range(10): print(sub(a,b)) elif opr==3: for i in range(10): print(mul(a,b)) else: print("incorrect data")
run
|
edit
|
history
|
help
0
Q2
Ej2_python_204676887
LinkedHashTable Implementation
BasicFunctions.py
exception handling from user
ms 80
Faiha Lesson 3
Prime Numbers : -> Conventional Method
alternative dict.get (faster)
Atur Cara Mizan 2