It's UWAweek 30 (2nd semester, week 1)

helpOSTS

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 3 articles in this topic
Showing 3 of 445 articles.
Currently 1 other person reading this forum.


 UWA week 19 (1st semester, week 10) ↓
SVG not supported

Login to reply

👍x1
helpful
1:52pm Fri 10th May, Zexu D.

Hello Prof Wise,

About

Based on the header (i.e. top) line, make sure that the file is a tab-separated format file Also based on the header line, report any lines that do not have the same number of cells. (Cells are allowed be empty.)

How can we distinguish if the line is separated using space or if it's just a phrase within spaces? Cos there are different ways to handle data according to these 2 conditions.

Let me take a simple example:

Entity Country Code

Is it three columns but be separated by 2 spaces? Or it is one column but just 2 spaces in it.

Thanks


SVG not supported

Login to reply

👍?
helpful
3:58pm Fri 10th May, Runzhi Z.

Based on my understanding, columns within a file are separated by the tab character ("\t"), rather than by spaces. While spaces may exist within a column, they are not employed to partition columns. Instead, spaces are utilized within a column to separate individual words or elements.


SVG not supported

Login to reply

👍?
helpful
9:54am Sun 12th May, Michael W.

"Runzhi Zhao" [email protected] wrote:

Based on my understanding, columns within a file are separated by the tab character ("\t"), rather than by spaces. While spaces may exist within a column, they are not employed to partition columns. Instead, spaces are utilized within a column to separate individual words or elements.

Hi Runzhi That is correct. Tabs are simply replacing the commas that are used in the .csv format. Spaces can appear in either format, and are just parts of strings; never separators.

Cheers MichaelW 👨‍🎨

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  7:24AM Jul 25 2024
Privacy policy