Python Forum
Collatz Conjecture Formatting
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Collatz Conjecture Formatting
#3
(Feb-11-2019, 10:34 PM)ichabod801 Wrote: Set max_num to number at the start of the loop. Each time through the loop, change max_num to number if number is higher than max_num (note: there's a really simple way to do this with the max function).

Oh I figured it out! Thank you for your help! :)
Reply


Messages In This Thread
Collatz Conjecture Formatting - by TreasureDragon - Feb-11-2019, 09:43 PM
RE: Collatz Conjecture Formatting - by ichabod801 - Feb-11-2019, 10:34 PM
RE: Collatz Conjecture Formatting - by TreasureDragon - Feb-11-2019, 10:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I found how many numbers are there in a Collatz Sequence that I found? cananb 2 2,505 Nov-23-2020, 05:15 PM
Last Post: cananb
  Collatz in Python...pls help mepyyeti 3 3,370 Dec-31-2017, 07:52 AM
Last Post: squenson

Forum Jump:

User Panel Messages

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