Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coding upgrade
#5
(Mar-22-2024, 04:16 PM)deanhystad Wrote: Look at str.split() This can be used to split a str like this:
Output:
0 10 7 1 6 4
Int a list of str like this:
Output:
['0', '10', '7', '1', '6', '4']
Then you can convert the individual number strings to ints like you are already doing in your program.

Thank you, but already try to putting your code but it cause error, maybe i dont know where to put it correctly, can you put it in my code, or maybe you have entirely whole better and more efficient code?

Thanks
Reply


Messages In This Thread
Coding upgrade - by MoreMoney - Mar-22-2024, 02:36 PM
RE: Frog Jumping Coding Improvement - by deanhystad - Mar-22-2024, 03:56 PM
RE: Frog Jumping Coding Improvement - by MoreMoney - Mar-22-2024, 04:02 PM
RE: Frog Jumping Coding Improvement - by deanhystad - Mar-22-2024, 04:16 PM
RE: Frog Jumping Coding Improvement - by MoreMoney - Mar-22-2024, 04:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to upgrade this code. valentino1337 2 561 Feb-28-2024, 07:44 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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