Python Forum
New to Python. Please help!!!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to Python. Please help!!!
#2
Your 1st while loop 'while length > 5:' doesn´t stop if length > 5 as there is no
change of length in the loop.
In your 2nd code example the condition 'while len(words_new_list) > 5:' is evaluated
each loop and as you are modifying the words_new_list the len() is different.
Reply


Messages In This Thread
New to Python. Please help!!! - by hoangthai10788 - Jun-23-2019, 10:39 PM
RE: New to Python. Please help!!! - by ThomasL - Jun-24-2019, 03:51 PM

Forum Jump:

User Panel Messages

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