Python Forum
How to solve this simple problem? Check if cvs first element is the same in each row?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to solve this simple problem? Check if cvs first element is the same in each row?
#3
Pretty much the output I want is this:

<h1> 1 </h1>
<h2> A </h2>
B
<h2> C </h2>
D

<h1> 2 </h1>
<h2> D </h2>
E


So the first column is the H1 tag. However if there are more than 1 columns with the same info (for example "1" in our case) then just add the second and 3rd columns as h2 and content.
The most important thing is that there should no be two h1 tags with the same content.
Reply


Messages In This Thread
RE: How to solve this simple problem? Check if cvs first element is the same in each row? - by thesquid - Jun-14-2022, 08:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  element in list detection problem jacksfrustration 5 408 Apr-11-2024, 05:44 PM
Last Post: deanhystad
  Can someone help me solve this programming problem? SuchUmami 6 926 Nov-20-2023, 10:01 AM
Last Post: EdwardMatthew
  list in dicitonary element problem jacksfrustration 3 721 Oct-14-2023, 03:37 PM
Last Post: deanhystad
  A simple problem, how best to solve it? SuchUmami 2 731 Sep-01-2023, 05:36 AM
Last Post: Pedroski55
  How do I solve the second problem? Cranberry 1 1,139 May-16-2022, 11:56 AM
Last Post: Larz60+
  check if element is in a list in a dictionary value ambrozote 4 1,991 May-11-2022, 06:05 PM
Last Post: deanhystad
  Try to solve GTG multiplication table problem. Frankduc 6 2,024 Jan-18-2022, 08:26 PM
Last Post: Frankduc
  Sudoku Solver, please help to solve a problem. AdithyaR 5 2,135 Oct-28-2021, 03:15 PM
Last Post: deanhystad
Big Grin question about simple algorithm to my problem jamie_01 1 1,695 Oct-04-2021, 11:55 AM
Last Post: deanhystad
Question Problem: Check if a list contains a word and then continue with the next word Mangono 2 2,518 Aug-12-2021, 04:25 PM
Last Post: palladium

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020