Ask Question
16 August, 22:29

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. 16 August, 23:12
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers