Consider what another developer needs to read to determine that control flow in your program: That's a pretty complex procedure, involving reading most of the code of the program, to get the overall control flow! On the user selecting c or f it does the conversion and (because there's no return for either of these) loops to read another selection. Below you will find a wealth of ball python care information provided by our biologist. If it gets an invalid input temperature you can simply print an error message and return, letting the top level take care of letting the user try again. Thanks for contributing an answer to Code Review Stack Exchange! The basking zone should range from 30 to 32 degrees C, and the cool end 24 to 26 degrees C. Monitor temperatures daily using digital thermometers at each end. Do not worry if the temperature drops a bit at night, as this is perfectly normal for all indoor enclosures. Thank you, everyone, for the quick and fulsome answers - awesome insight and very helpful information. Did Augustus the Strong sleep with his own daughter? Having a cool and basking side in the enclosures is key for allowing the snake to keep its body temperature perfect. I'm pretty happy that you've gone the extra mile to take a simple exercise and make it your own. I changed your string delimiters as one of my tools errors on ", as I commonly use '. Should I point out a flaw in a paper before I start to write the review? That is, regardless of whether the convert_C_to_F() gets valid input or not, always have it just take input, print something, and return. the link you provided, thank you! My Panther Chameleon is a cricket slayer! Ball pythons are cold-blooded animals requiring warmer and cooler zones for their bodies to function. Having a cool and basking side in the enclosures is key for allowing the snake to keep its body temperature perfect. The ideal temperature of a ball python habitat would be 90°F to 95°F (32°C – 35°C). To achieve this, a heat lamp can be put on one side. There is no perfect temperature for snakes. The only code in your program that's immediately executed is the if __name__ == "__main__": ... paragraph. I have two thermometers one on the hotter side and one on the colder side. However it seems like this is not the right way around or the naming is confusing: @Graipher That's cool, I'll add it to mine. As you can read in the comments for the program below, I wanted to expand on this. That braced {i+1} executes like python code embedded when the string is formatted. This means their body temperature reflects on their enclosure. Be sure to buy a reliable brand when purchasing under-tank heat tape. I’m studying aerodynamics... how Bernoulli's principle really works? When it comes to any reptile, one temperature to keep the enclosure at is never given. Nah, I think the current answers cover everything I really care about. The .items() method is similar to enumerate, but this one gives us the dict keys on the left and the dict values on the right. This program is one of the most complex and best organized for me thus far. This can be used in mainProg to determine if the user will continue using the program or exit. The daytime temperature of the enclosure should be between 27-29 degrees Celsius, with a hotter spot of around 32 degrees for basking. The method enumerate is a convenient method that allows us to iterate with both the index and item of a list; i is the index, and option is the item in the list. I personally use Prospector and Flake 8 with a butt tone of plugins. The function that calls both of these functions. rev 2020.10.19.37839, The best answers are voted up and rise to the top, Code Review Stack Exchange works best with JavaScript enabled, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site, Learn more about Stack Overflow the company, Learn more about hiring developers or posting ads with us, Please do not update the code in your question to incorporate feedback from answers, doing so goes against the Question + Answer style of Code Review.