import random
def generator(Deflength, Defchar):
  i = 0
  password = ""
  # generating password using random module
  while i <= Deflength:
    password += random.choice(Defchar)
    i += 1  
  print(f"Your password is {password}")

2da5ba75bdbd32eaa900298b678464fdfa382c46
<mask token>

<mask token>


def generator(Deflength, Defchar):
    i = 0
    password = ''
    while i <= Deflength:
        password += random.choice(Defchar)
        i += 1
    print(f'Your password is {password}')

import random


def generator(Deflength, Defchar):
    i = 0
    password = ''
    while i <= Deflength:
        password += random.choice(Defchar)
        i += 1
    print(f'Your password is {password}')

import random
def generator(Deflength, Defchar):
  i = 0
  password = ""
  # generating password using random module
  while i <= Deflength:
    password += random.choice(Defchar)
    i += 1  
  print(f"Your password is {password}")
