Getting Started with Functions - Persian
- subtitles off
- captions off
- English
- Questions posted on Forums
- Python 3.4.3 Tutorials - Persian
-
Make a function to calculate sum of matrix
How can we create function to calculate sum of matrix.
07-08M 50-60S Mukulgoswami340@gmail.com
Answer last updated on: July 8, 2020, 6:07 p.m.
-
why an error occur in the below program code
a=10b=20print(id(a))def func(x,y): y=a a=2 print(y) return x+yn1=int(input("Enter no"))n2=int(input("Enter"))print(func(n1,n2))
02-03M 40-50S Cinil
Answer last updated on: May 4, 2020, 9:42 p.m.
-
getting started with symbolics
Dear AllI am using jupyter notebook in Python 3On typing var('x')h(x)=x^2g(x)=xf= Piecewise([[(0,1),h(x)],[(1,2),g(x)]],x)I get following reply.-------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-46-77057750395d> in <module>() 2 __tmp__=var("x"); h = symbolic_expression(x**Integer(2)).function(x) 3 __tmp__=var("x"); g = symbolic_expression(x).function(x) ----> 4 f= Piecewise([[(Integer(0),Integer(1)),h(x)],[(Integer(1),Integer(2)),g(x)]],x) NameError: name 'Piecewise' is not defined Kindly help
00-01M 10-20S gaganj1981@gmail.com
Answer last updated on: April 28, 2020, 12:45 a.m.
-
1Getting started with IPython
-
2Using plot command interactively
-
3Embellishing a plot
-
4Saving plots
-
5Multiple plots
-
6Subplots
-
7Additional features of IPython
-
8Loading Data From Files
-
9Plotting Data
-
10Other Types Of Plots
-
11Plotting Charts
-
12Getting started with Lists
-
13Getting started with for
-
14Getting started with strings
-
15Getting started with files
-
16Parsing data
-
17Statistics
-
18Getting started with arrays
-
19Accessing parts of arrays
-
20Image manipulation using Arrays
-
21Basic Matrix Operations
-
22Advanced Matrix Operations
-
23Least square fit
-
24Basic datatypes and operators
-
25Sequence datatypes
-
26Input-output
-
27Conditional Statements
-
28Loops
-
29Manipulating lists
-
30Manipulating strings
-
31Getting started with tuples
-
32Dictionaries
-
33Sets in Python
-
Getting Started with Functions
-
35Advanced Features of Functions
-
36Using Python Modules
-
37Writing Python Scripts
-
38Testing and Debugging
-
39Handling Errors and Exceptions
Questions posted on ST Forums:
217 visits
Outline:
در مورد توابع چگونه یک تابع را تعریف کنیم مثال برای تعریف یک تابع فراخوانی یک تابع با آرگومان فراخوانی یک تابع بدون آرگومان مقادیر بازگشتی از یک تابع تورفتگی در کدگذاری کد داکیومنتینگ یا کامنتینگ نحوه استفاده از داک استرینگز در تابع پایتون چگونه تابع سرکل برای بازگرداندن مساحت و محیط با شعاع آر را بنویسیم
Width: | 848 | Height: | 640 |
---|---|---|---|
Duration: | 00:07:09 | Size: | 2.6 MB |
Show video info