Questions tagged [lines]

This tag can refer to rows of characters in text output or input, or to the shortest distance between two points.

This tag can refer to:

  • rows of characters in text output or input;
  • the shortest distance between two points (see also: ).
1223 questions
-4
votes
1 answer

How to Compare Information in csv file with Python?

I'm working on a csv file. I have different columns, each corresponding to an information of my dataset. Suppose my file contain for each line: name information1 information2 information3 -for lines having the same name and information1 and 2 I…
Alice
  • 197
  • 1
  • 1
  • 9
-4
votes
3 answers

Python Changing the format of a text file to a new format

I am giving a text file with the format below: 3 Bham Hoover - Vestiva 123 234 1 456 876 1 876 745 1 0 4 Bham Vestiva - Greensprings 235 876 1 647 987 1 098 765 1 234 546 1 0 This goes on for several more lines, but I am trying to…
user1431707
  • 11
  • 1
  • 2
-4
votes
1 answer

Maximum number of points between two parallel lines

I am given N+2 points with integer coordinates. 2 of them are base-points. Two parallel lines need to be drawn through the given base-points. What is the maximum number of points situated between the two parallel lines? Sorry for my english and…
user1359532
  • 147
  • 1
  • 4
-5
votes
1 answer

CSS: Align multiple lines of text left after a radio button

Unfortunately I don't really know how to describe the problem with the correct terms, I used CSS very sparingly so far. Problem: the second line of the lowermost radio option should be aligned with the first (where I drew the vertical line). of…
LMTR14
  • 1
  • 1
  • 2
-5
votes
1 answer

How to include a sorting method in program?

Here are the requirements for the program. Essentially the output must be as follows while still adhering to the guidelines below. My question is how do I alter my program to meet requirement #4 (which is writing a method that takes the student data…
christy c
  • 3
  • 3
-5
votes
1 answer

How can I enumerate text read from a file line by line, and find the line with the most characters and words in C?

I'm currently writing a program that is supposed to read from a text file (fed to the program via the command line), and then enumerate and print out each line and provide information on the number of words, characters, and lines, as well as…
-5
votes
1 answer

Comparing Two Text Files, Removing the duplicate lines

I have two text files, file1.txt and file2.txt, that I need to compare and remove duplicate lines. The two files are not equal in size. I've tried using filecmp and openfiles, but they do not work. with open('crones.txt', 'r') as file1: with…
user3795147
  • 21
  • 1
  • 2
-5
votes
1 answer

function lines() is not working

I have a problem with the function lines. this is what I have written so far: model.ew<-lm(Empl~Wage) summary(model.ew) plot(Empl,Wage) mean<-1:500 lw<-1:500 up<-1:500 for(i in 1:500){ …
user1972463
  • 1
  • 1
  • 1
1 2 3
81
82