3 ms·
and imports are (almost) always at the top of your file not with this function
by minkzilla 3y ago
and imports are (almost) always at the top of your file not with this function
- vharuck 3y agoI tried the same input, except wrapping it in triple-quotes instead of commenting it. So that it would match the standard practice for module doc strings. Here's the result: """python function that returns a random integer between min and max""" return random.randint(min, max) def gen_random_float(min, max): """python function that returns a random float between min and max""" return random.uniform( So, it assumed the triple-quote was a function's doc string, despite it not being indented. It then assumes I'll want a similar function for floats (I assume it was cut off by a token limit).