Question: Create 3x3 2D array, fill it with random numbers, and calculate the main diagonal summation, then print it. Problem 2: Strings Louise joined a social



Create 3x3 2D array, fill it with random numbers, and calculate the main diagonal summation, then print it.

Problem 2: Strings

Louise joined a social networking site to stay in touch with her friends. The signup page required her to input a name and a password. However, the password must be strong. The website considers a password to be strong if it satisfies the following criteria:


  • Its length is at least 6.
  • It contains at least one digit.
  • It contains at least one lowercase English character.
  • It contains at least one uppercase English character.
  • It contains at least one special character. The special characters are: !@#$%^&*()-+


She typed a random string of length N in the password field but wasn't sure if it was strong. Given the string she typed, can you find if the password is a strong password or not?

Note: Here's the set of types of characters in a form you can paste in your solution:

numbers="0123456789"

lower_case="abcdefghijklmnopqrstuvwxyz"

upper_case="ABCDEFGHIJKLMNOPQRSTUVWXYZ"

special_characters="!@#$%^&*()-+"


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import random Create a 3x3 2D array and fill it with random numbers array randomrandi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!