Ask Question
14 November, 15:38

Use Python to calculate how many different passwords can be formed with 6 lower case English letters. For a 1 letter password, there 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.

+3
Answers (1)
  1. 14 November, 19:34
    0
    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:

    Following are the description of the program.

    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'.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Use Python to calculate how many different passwords can be formed with 6 lower case English letters. For a 1 letter password, there would ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers