Output text in the first column of TXT file. If you encounter duplicate text, skip it (that is, the same text appears only once)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Language: Python

i have a txt named "hightemp.txt"

Output text in the first column of TXT file. If you encounter duplicate text, skip it (that is, the same text appears only once)

please help me  , thanks

Here is the content of "hightemp.txt"

A AA 41 2013-08-12
B BB 40.9 2007-08-16
C CC 40.9 2007-08-16
D DD 40.8 1933-07-25
E EE 40.7 2013-08-10
F FF 40.6 1994-08-08
G GG 40.6 1994-08-04
H HH 40.5 2013-08-10
I II 40.4 2007-08-16
J JJ 40.3 2007-08-16
C KK 40.3 1998-07-04
L LL 40.3 1994-08-05
A MM 40.2 2004-07-20
H NN 40.2 2001-07-24
O OO 40.2 1927-07-22
P PP 40.1 1978-08-03
A QQ 40 2007-08-16
H RR 40 2001-07-24
S SS 39.9 2013-08-11
T TT 39.9 1997-07-05
O UU 39.9 1994-08-08
H VV 39.9 1990-07-19
C WW 39.9 1978-08-03
X XX 39.9 1942-08-02

A AA 41 2013-08-12
B BB 40.9 2007-08-16
C CC 40.9 2007-08-16
D DD 40.8 1933-07-25
E EE 40.7 2013-08-10
F FF 40.6 1994-08-08
G GG 40.6 1994-08-04
H HH 40.5 2013-08-10
I || 40.4 2007-08-16
J JJ 40.3 2007-08-16
C KK 40.3 1998-07-04
L LL 40.3 1994-08-05
A MM 40.2 2004-07-20
H NN 40.2 2001-07-24
O 00 40.2 1927-07-22
P PP 40.1 1978-08-03
A QQ 40 2007-08-16
H RR 40 2001-07-24
S SS 39.9 2013-08-11
T TT 39.9 1997-07-05
O UU 39.9 1994-08-08
H VV 39.9 1990-07-19
C WW 39.9 1978-08-03
X XX 39.9 1942-08-02
Transcribed Image Text:A AA 41 2013-08-12 B BB 40.9 2007-08-16 C CC 40.9 2007-08-16 D DD 40.8 1933-07-25 E EE 40.7 2013-08-10 F FF 40.6 1994-08-08 G GG 40.6 1994-08-04 H HH 40.5 2013-08-10 I || 40.4 2007-08-16 J JJ 40.3 2007-08-16 C KK 40.3 1998-07-04 L LL 40.3 1994-08-05 A MM 40.2 2004-07-20 H NN 40.2 2001-07-24 O 00 40.2 1927-07-22 P PP 40.1 1978-08-03 A QQ 40 2007-08-16 H RR 40 2001-07-24 S SS 39.9 2013-08-11 T TT 39.9 1997-07-05 O UU 39.9 1994-08-08 H VV 39.9 1990-07-19 C WW 39.9 1978-08-03 X XX 39.9 1942-08-02
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education