Lesson 1, Topic 6
In Progress
Introduction To Python Modules
Lesson Progress
0% Complete
Code of the Lesson
import random
random.randint(0, 100) import random
print(random.randint(0, 100)) import random
print(random.choice('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))
print(random.choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ')) import string
print(string.ascii_letters)
print(string.digits)
print(string.punctuation) import random
import string
print(random.choice(string.ascii_letters))
print(random.choice(string.digits))
print(random.choice(string.punctuation))