Python Forum
Complex Jumping In Code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Complex Jumping In Code
#2
why not:
>>> words = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum"
>>> wordlist = words.split()
>>> print(f"The longest word in the list is {max(map(len, wordlist))} characters")
The longest word in the list is 13 characters
>>>
Reply


Messages In This Thread
Complex Jumping In Code - by WhamDie - Mar-15-2020, 07:52 AM
RE: Complex Jumping In Code - by Larz60+ - Mar-15-2020, 08:06 AM
RE: Complex Jumping In Code - by buran - Mar-15-2020, 08:16 AM
RE: Complex Jumping In Code - by WhamDie - Mar-15-2020, 09:58 AM
RE: Complex Jumping In Code - by buran - Mar-15-2020, 10:04 AM
RE: Complex Jumping In Code - by ndc85430 - Mar-15-2020, 10:36 AM
RE: Complex Jumping In Code - by WhamDie - Mar-15-2020, 10:43 AM
RE: Complex Jumping In Code - by ndc85430 - Mar-15-2020, 06:59 PM
RE: Complex Jumping In Code - by buran - Mar-15-2020, 07:03 PM
RE: Complex Jumping In Code - by snippsat - Mar-15-2020, 10:03 PM

Forum Jump:

User Panel Messages

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