Questions tagged as 'lista'

1
answer

How to browse a list in Prolog to find a specific item

I'm a beginner in Prolog and I have questions about how to go through a list. I have a historico(ra,[i1,i2,i3,...,in]) predicate where ra is the Academic Record of a student and each i is an item, with the form item(CM...
asked by 23.06.2015 / 04:21
3
answers

How to browse lists?

I wanted a solution to go through a Practical List. You do not have to show any results because I'm going to need to go through a list of people (objects) and generate an accounts receivable from each, but first I need to know how I can go th...
asked by 13.05.2016 / 13:39
2
answers

How to Save \ Read threaded list to file?

I'm very new to programming and I'm coding this program for a college job. It is a "pizzeria manager", I need to save \ a linked list (customer list) in a file, so that the data is not lost when the program is closed. But how can I do this...
asked by 02.01.2015 / 01:56
1
answer

How to stop a loop using the input provided by the user?

I am writing a program that receives entries and creates a dictionary from them. I need the loop that I use to insert the entries in the dictionary to be broken when the entry is "9999", but it is not working. I'm doing this: dic = dict () dic...
asked by 17.04.2016 / 15:27
1
answer

Sort dictionary and add python values

I have this text file that is processed to capitalize and this part does it correctly. olá meu nome é meu nome pois eu olá é meu nome walt não disney olá Then I have this function that should be able to calculate the frequency of each word...
asked by 15.12.2018 / 17:35
1
answer

How to see if there are two equal items in the ArrayList and remove them?

I am doing the "Tokenization" of a TXT file. I need the code to save all tokens in an ArrayList, but there can be no duplicate token . I would like to know how to remove duplicate tokens , or check if token already exists and in this...
asked by 08.11.2014 / 15:43
2
answers

Retrieve list written to file with Python

I would like to go to my file that contains the following ['teste1', '27-12-18', '12/5/2015', 'Aberta'] ['teste2', '27-12-18', '6/7/7', 'Aberta'] ['teste3', '27-12-18', '12/5/6', 'Fechada'] and only show if the 3 field is Open I have the fo...
asked by 27.12.2018 / 17:19
1
answer

Determining sequence of numbers with bubble sort from a txt file in python?

I have an input file in txt with data type the following: 7 6 8 4 8 5 0 1 2 1 0 3 2 3 0 This file is about 3 students from a school. The first line is the age of these 3 students (the first column could be student1, the second...
asked by 17.07.2018 / 22:53
1
answer

Passing a Connection string dynamically

Well my problem would be to try to pass a connection string from a txt file. which is also used to bring the items from my ComboBox, the goal and bring a different bank depending on the item selected in the ComboBox. I tried to pass the string t...
asked by 28.08.2018 / 13:55
1
answer

Task ListT showing error Xamarin

I'm creating a Task List
asked by 08.06.2018 / 04:17