1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Liula [17]
3 years ago
14

Use Python to calculate how many different passwords can be formed with 6 lower case English letters. For a 1 letter password, t

here would be 26 possibilities. For a 2 letter password, each letter is independent of the other, so there would be 26 times 26 possibilities. Using this information, print the amount of possible passwords that can be formed with 6 letters.
Computers and Technology
1 answer:
otez555 [7]3 years ago
3 0

Answer:

Following are the program in the Python Programming Language.

#Set integer type variable

letter = 6

#Set integer type variable

Possibility = 26

#Set variable to store total Possibilities

total =Possibility ** letter

#print variable

print(total)

Explanation:

<u>Following are the description of the program</u>.

  • Firstly, we set an integer type variable 'letter' and initialize it to 6.
  • Then, we set another integer type variable 'Possibility' and initialize it to 26.
  • Set an integer type variable 'total' that stores the number of the possible passwords that can be created from 6 letters.
  • Finally, print the variable 'total'.
You might be interested in
Here is the list of problems to choose from:
olya-2409 [2.1K]

Answer:

There's a parking lot that is 600m² big. The lot must be able to hold at least 3 buses and 10 cars.

Each car takes up 6m² and each bus takes up 30m².

However, there can only be 60 vehicles in the lot at any given time.

The cost to park in the lot is $2.50 per day for cars and $7.50 per day for buses. The lot must make at least $75 each day to break even.

What is a possible car to bus ratio that would allow the lot to make profit?

3 0
3 years ago
The part (or statement) of a recursive function that decides whether the recursive loop is terminated is called: (Select all tha
Crank

Answer:

The base case

Explanation:

Required

The part that determines the termination of a recursion

This part of a recursion is referred to as the base case.

Take for instance, the following:

<em>factorial(int n) { </em>

<em>    if (n < = 1) {         return 1; } </em>

<em>    else {             return n*factorial(n-1);    }  }</em>

<em />

The base case of the above is     if (n < = 1) {         return 1; }

Because the recursion will continue to be executed until the condition is true i.e. n less than or equals 1

3 0
3 years ago
How we know that how many domain exist in window server 2012?
seraphim [82]

A Windows domain is a form of a computer network in which all user accounts, computers, printers and other security principals, are registered with a central database located on one or more clusters of central computers known as domain controllers. Authentication takes place on domain controllers.

5 0
3 years ago
Write a program that reads an integer value from the user representing a year. The purpose of the program is to determine if the
timofeeve [1]

Answer:

Following program in c language:

#include <stdio.h> // header file

int main() // main method

{

   int year1 ; // varuiable declaration

   printf("Enter year: ");

   scanf("%d",&year1); // input year

   if(year1<1582) // checking condition if year less then 1582

   {

   printf(" invalid year please input correct year");

}

else

{

   if(year1 % 4 == 0) // checking condition of leap year  

   {

       if( year1 % 100 == 0) // checking condition of leap year  

       {

           if ( year1 % 400 != 0)  

               printf("%d is a Leap Year", year1);

           else

               printf("%d is not a Leap Year", year1);

       }

       else

           printf("%d is a Leap Year", year1 );

   }

   else

       printf("%d is not a Leap Year", year1);

}

   return 0;

}

Output:

First output

Enter year:  2004

2004 is a leap year

Second output

Enter year:  2003

2003 is not a leap year

Third output

Enter year:  200

invalid year please input correct year

Explanation:

In this program we input a year by user in "year1" variable .Initially check if year is less then 1582 then display message in console " invalid year please input correct year" otherwise control moves to else block and check the condition which is given below.

A year is leap year if it is satisfied these condition

(year1 % 4 == 0) and (year1 % 100 == 0) and  (year1 % 400 != 0)

Otherwise it is not a leap year.

3 0
3 years ago
Your classmate constructs a simple computer that adds numbers. There are 5 wires for inputting the first
N76 [4]

Answer:

26

Explanation:

7 0
3 years ago
Other questions:
  • Amy has decided to use a dark background and light colored text for her prensentation. Which toolbar option will let her change
    5·1 answer
  • Define a function below, get_subset, which takes two arguments: a dictionary of strings (keys) to integers (values) and a list o
    8·1 answer
  • The smallest network
    13·1 answer
  • Technology can most broadly be defined as anything that does which of the following ?
    11·1 answer
  • Is a collection of computers and other devices that are connected in order to enable users to share hardware, software, and data
    11·1 answer
  • Enumeration is defined as the process of extracting user names, machine names, network resources, shares, and services from a sy
    13·1 answer
  • GuardIN is an IT security firm. It deals with highly secure data for a wide variety of software and e-commerce agreements, trade
    7·1 answer
  • List three ways you can help somone who is being cyber bullied instead of just being a bustander​
    7·2 answers
  • Requirements description:
    6·1 answer
  • What kind of personal information are you comfortable sharing with others online? Why? What steps do you take to control how tha
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!