• Register

Recent questions tagged elements

0 votes
1 answer 1 view
Problem: Which of the following is the smallest element in a database? field record character file Moreover, please tell the correct arrangement of all these elements in ascending order. Thanks!
asked 2 hours ago Code Learner 7k points
0 votes
1 answer 1 view
Problem: How to I Solve this: sort list of tuples by second value python HELP! I need help understanding this: sort list of tuples by second value python Can someone please help solve this, I am new in python(). Someone have idea to solve this thanks!
asked 7 hours ago Mashhoodch 10.8k points
1 vote
1 answer 1 view
Problem: How to find the index of an item in a list ?
asked 15 hours ago Ashty 2.3k points
0 votes
2 answers 2 views
Problem: While learning about tables in HTML, I came to know that there are various elements that are used to create a table in HTML and without which our table is incomplete. Can anybody please explain all of those elements to me? Thanks!
asked 1 day ago Code Learner 7k points
0 votes
1 answer 1 view
Problem: How to I Solve this: find an element in a list python HELP! I need help understanding this: find an element in a list python Can someone please help solve this, I am new in python(). Someone have idea to solve this thanks!
asked 1 day ago Mashhoodch 10.8k points
0 votes
1 answer 1 view
Problem: How to I Solve this: python sort list of lists by first element HELP! I need help understanding this: python sort list of lists by first element Can someone please help solve this, I am new in python(). Someone have idea to solve this thanks!
asked 1 day ago Mashhoodch 10.8k points
0 votes
1 answer 2 views
Problem: How to I Solve this: finding index of element in list python HELP! I need help understanding this: finding index of element in list python Can someone please help solve this, I am new in python(). Someone have idea to solve this thanks!
asked 1 day ago Mashhoodch 10.8k points
0 votes
1 answer 1 view
Problem: How to I Solve this: check if all elements in array are equal python HELP! I need help understanding this: check if all elements in array are equal python Can someone please help solve this, I am new in python(). Someone have idea to solve this thanks!
asked 3 days ago Mashhoodch 10.8k points
0 votes
1 answer 3 views
Problem: Why I got the error : evaluate infix expression using stack in java HELP! I need help understanding this error: evaluate infix expression using stack in java Can someone please help fix this, I am new in java. Anyone have ideas on what I need to do to fix this? Thanks!
asked 4 days ago Ali 6.5k points
0 votes
1 answer 3 views
Problem: Why I got the error : java check if two arrays have same elements HELP! I need help understanding this error: java check if two arrays have same elements Can someone please help fix this, I am new in java Any anyone ideas on what I need to do to fix this? Thanks!
asked 5 days ago Ali 6.5k points
0 votes
1 answer 7 views
Problem: How can I find the values in an array whose sum equals some given value?
asked Feb 27 Code Learner 7k points
0 votes
1 answer 12 views
Problem: I've got a list of tuples. I want to sort them depending two elements. Here is following example unsorted = [('a', 4, 2), ('a', 4, 3), ('a', 7, 2), ('a', 7, 3), ('b', 4, 2), ('b', 4, 3), ('b', 7, 2), ('b', 7, 3)] sorted = [('a', 4 ... a', 7, 3), ('b', 7, 3)] I know how to sort them on the second element: sorted(unsorted, key = lambda element : element[1]) But how to do that with two keys?
asked Feb 23 Mashhoodch 10.8k points
0 votes
1 answer 10 views
Problem: case (in which it does not exist) shows the following error: Traceback (most recent call last): File "D:\zjm_code\a.py", line 6, in <module> b = a.index(6) ValueError: list.index(x): x not in list
asked Feb 21 Mashhoodch 10.8k points
0 votes
1 answer 12 views
Problem: I have a list of tuples that looks something like this: [('abc', 121),('abc', 231),('abc', 148), ('abc',221)] I want to sort this list in ascending order by the integer value inside the tuples. Is it possible?
asked Feb 20 Mashhoodch 10.8k points
0 votes
1 answer 9 views
Problem: but I'm having a hard time finding the answer. When I compare 2 lists, I want to know if they are "equal" in that they have the same contents, but in different order. Ex: x = ['a', 'b'] y = ['b', 'a'] I want x == y to evaluate to True.
asked Feb 20 Mashhoodch 10.8k points
0 votes
1 answer 6 views
Problem: I have an integer and a list. I would like to make a new list of them beginning with the variable and ending with the list. Writing a + list I get errors. The compiler handles a as integer, thus I cannot use append, or extend either. How would you do this?
asked Feb 19 Mashhoodch 10.8k points
0 votes
1 answer 9 views
Problem: here is we can find max element in vector c++
asked Feb 15 jasimchaudary 640 points
0 votes
1 answer 9 views
Problem: I have a List of object and the list is very big. The object is class Sample { String value1; String value2; String value3; String value4; String value5; } Now I have to search for a specific value of an object in the list. Say if value3=='three' I have to return those objects (My search is not always based on value3)
asked Feb 3 Ali 6.5k points
0 votes
1 answer 10 views
Problem: In Python, use list methods clear(), pop(), and remove() to remove items (elements) from a list. It is also possible to delete items using del statement by specifying a position or range with an index or slice. Remove all items: clear() Remove an ... : pop() Remove an item by value: remove() Remove items by index or slice: del Remove items that meet the condition: List comprehensions
asked Jan 24 Mashhoodch 10.8k points
0 votes
1 answer 12 views
In the given statement c++ find element in vector.
asked Jan 24 waji 1.9k points