Python Forum
remove vowels in word with conditional
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
remove vowels in word with conditional
#9
Menator - in line 5 you are iterating over word. In line 7 you modify word. So, let's say you are on the 6th letter of an 8 letter word, and you eliminate that letter. Python then moves to the 7th letter, which was the 8th letter, skipping the 7th.
Reply


Messages In This Thread
RE: remove vowels in word with conditional - by jefsummers - May-02-2021, 12:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to remove unwanted images and tables from a Word file using Python? rownong 2 786 Feb-04-2025, 08:30 AM
Last Post: Pedroski55
Question Problem: Check if a list contains a word and then continue with the next word Mangono 2 3,653 Aug-12-2021, 04:25 PM
Last Post: palladium
  counting vowels in a string project_science 3 6,058 Dec-30-2020, 06:44 PM
Last Post: buran
  Counting vowels in a string (PyBite #106) Drone4four 4 3,363 Jul-07-2020, 05:29 AM
Last Post: theknowshares
  Python Speech recognition, word by word AceScottie 6 18,403 Apr-12-2020, 09:50 AM
Last Post: vinayakdhage
  Remove a sentence if it contains a word. lokhtar 6 8,263 Feb-11-2020, 04:43 PM
Last Post: stullis
  Cannot Remove the Double Quotes on a Certain Word (String) Python BeautifulSoup soothsayerpg 5 9,228 Oct-27-2019, 09:53 AM
Last Post: newbieAuggie2019
  print a word after specific word search evilcode1 8 6,410 Oct-22-2019, 08:08 AM
Last Post: newbieAuggie2019
  difference between word: and word[:] in for loop zowhair 2 4,583 Mar-03-2018, 07:24 AM
Last Post: zowhair
  no vowels function alex_bgtv 6 6,236 Jan-01-2018, 08:48 PM
Last Post: alex_bgtv

Forum Jump:

User Panel Messages

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