hi,
Need to find the minimum element value in each row of list a[].if the element of row is equal to the min value, i want to get its column index and put in another list b[].
example:
a[0]=[1,2,3,6,1]
a[1]=[2,3,4,2,5]
a[2]=[3,4,7,3,3]
The minimum in row a[0] is 1. Element of a[0][0] and a[0][4] is equal to 1. So b=[0,4]
But how do i get the index of the column? i...
User Profile
Collapse
-
how to get the column index of m-n dimensional array/list?
-
how to display text entered in a textbox?
Hi there,
i used tabControl. In first tabpage, user need to fill in the textboxs(ie:Nam e,id number,age,addr ess,etc.) Then "Next" button click, a summary of what have been entered in 1st tabpage need to be display in second tabpage. i tried using label to display,
self._label12.T ext = self._textBoxNa me.Text
self._label14.T ext = self._textBoxAg e.Text... -
Hi there,
im using SharpDevelop to create my GUI. but i found it's quite hard to search online tutorial or forum for SharpDevelop.
i used tabControl. In first tabpage, user need to fill in the textboxs(ie:Nam e,id number,age,addr ess,etc.) Then "Next" button click, a summary of what have been entered in 1st tabpage need to be display in second tabpage. i tried using label to display,
self._label12.T ext...Leave a comment:
-
how to display text entered in a textbox?
hi,
How do i display text that a user entered in textbox as a display label?
Basically,i just want to display it as a summary of the choices made. -
Array/List: how to find in which column the minimum value is?
hi,
i used min() to find the minimum value of an array/list. it gives the min value of each row. But how do i know in which column does the min value is..?
a=[[0 for i in range(3)]for j in range(4)]
a[0]=[23,5,10]
a[1]=[11,34,12]
a[2]=[29,16,34]
a[3]=[53,35,13]
min(a[0])=5
min(a[1])=11
min(a[2])=16
min(a[3])=13 -
Increment of array/list element
hi,
i want to create an array element of increment value in a loop.
example:
a=[0,1,2,3,4,5,0,1 ,2,3,4,5,0,1,2, 3,4,5]
output of my code :
a=[0,1,2,3,4,5,0,0 ,0,0,0,0,0,0,0, 0,0,0]
how do i fill in the rest of the array element?help!
thanks-
Code:a=[0 for i in range(18)] for i in range(6): a[i]=i
-
-
How to select an item in a comboBox?
hi.,
User will select an item from a comboBox.
Example:
Selection 1 : Quadratic
Selection 2: Trigonometri
Im not sure how do i recognize which selection has been made by the user in my code. Help!
Code:if self._comboBox1.SelectedItem : else: MessageBox.Show( "Please Choose a Topic" )
-
how to create an unlimited size array in python?
hi,
how do i create an unlimited array size? -
What is the largest range for a 2-D list?
hi,
What is the size limit of a list?
Coz i wanted to create a 2-dimensional list of range 1.125e+19. But i keep getting error of " too many item in range". How do i solve this problem? -
How to round up/down integer number?
hi,
i want my 2.25x10^12 to be rounded to 2x10^12 and 2.75x10^12 to 3x10^12.
How can i do that?
thanx -
-
How to pass variable between forms?
hi,
The MainForm will have 2 buttons:
1.) Button A :
User click button A, hide Mainform then go to form1. User enter data in the textbox.Click finish button,form1 close then go back to MainForm.
2.) Button B :
User Click Button B,hide Mainform then go to form2. Click a button & some mathematical operations will be done using all parameters that have been entered in form1.
My method... -
im running the program in SharpDevelop.so mehow it did not give in which line is the error. really make it difficult to debug. =(Leave a comment:
-
System.DivideByZeroException, What does this error means?"
hi,
Has anyone ran into this error? please help.
System.DivideBy ZeroException: Attempted to divide by zero.
at Caller.Call
at BuiltinFunction Caller<System._ _Canon,System._ _Canon,System._ _Canon,System._ _Canon,System._ _Canon,System.I nt32>.Call5
at System.Dynamic. UpdateDelegates .UpdateAndExecu te7
at IronPython.Runt ime.Importer.Im port
at IronPython.Runt ime.Operations. PythonOps.Initi alizeModule... -
problem with two-dimensional list/array
hi,
i've created a 2D list(ie: A=[]). i choose some of element from the list(ie: A[0][0],A[1][1],A[2][2]) and do simple add operations.
Then i created another empty 2D list to store the result. but i wanted the result to be stored at a specific index (ie: at B=[0][0],B[1][1],B[2][2]).
but i get an error."Error - list index out of range "
here is my code...can anyone spot my mistake...... -
how to select a radio button in python?
hi,
i wanted to use radio button in my GUI. The user will choose one of the button to do a task.Should i assign a variable for each button? btw, Im using SharpDevelop . -
"object is unsubscriptable" What does it means?
Just wondering..what should i do if this error came out? -
-
how to add each element of list by 1?
hi,
if i have a list of
a=[0 1 2 3 4 5]
how do i add each element of the list by 1 to get
a=[1 2 3 4 5 6]
Thanks.
No activity results to display
Show More
Leave a comment: