Respuesta :

)

paswrd = paswrd.replace('S', '

)

paswrd = paswrd.replace('t', '+')

paswrd = paswrd.replace('T', '+')

paswrd = paswrd.capitalize()

paswrd = paswrd + (str(random.randint(1,999)))

print(paswrd)

Explanation:

  • Take the password as input from user.
  • Replace the alphabets with relevant characters.
  • Capitalize the password.
  • Finally display the password.