3-1-5-23. Solution: The Standard Library
Quiz Solution: Password Generator To create random passwords we used import random. The function definition was simply: Alternatively, you could use the random.sample function and .join method for strings:
Quiz Solution: Password Generator To create random passwords we used import random. The function definition was simply: Alternatively, you could use the random.sample function and .join method for strings:
Quiz: Compute an Exponent It’s your turn to import and use the math module. Use the math module to calculate e to the power of 3. print the answer. Refer to the
You’ve seen how helpful it could be to import your own modules. But what if I told you there was an entire library of built-in modules that just come with Python? This is the Python standard library. Up here, you see built-in objects we use throughout this course; like built-in functions, data types, and exceptions. … Read more
댓글을 달려면 로그인해야 합니다.