# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
#Create a program to generate a password
#length 12
#6 random == "A-Z a-z"
#4 --> digits
#2 -- > special characters

# +
import random
import string

letter_count = 6
digit_count = 4
char_count = 2

string_source = ''.join(random.choice(string.ascii_letters) for i in range(letter_count))
string_source+= ''.join(random.choice(string.digits) for i in range(digit_count))
string_source+= ''.join(random.choice(string.punctuation) for i in range(char_count))

list1 = list(string_source)
random.shuffle(list1)
final_str = ''.join(list1)
print(final_str)
# -



StarcoderdataJupyterScriptsDedupFiltered