In a make task you use the skills you have learned to create a program from scratch. There is no starter code: you begin with an empty editor.
An online school portal only accepts passwords that are long enough. Your program checks one.
Write a program that:
TRUE if the password is 8 or more characters long,FALSE otherwise.Every character counts towards the length, spaces and punctuation included.
The question first, worded exactly like this:
Enter password:
Then one line reading either TRUE or FALSE, in capital letters.
Input:
password
Output:
Enter password:
TRUE
Input:
secret1
Output:
Enter password:
FALSE
password is exactly 8 characters long, which is long enough. secret1 is 7,
which is one short.
Ask the question with its own print, and read the answer with a bare
input() on the next line, rather than passing the question to input(...).
The question is part of the output that is checked here, so its spelling,
capital letters and punctuation count.
Make sure that you check for the following things:
len(password), not from the password itself.TRUE and FALSE are printed as text, in speech marks and in capitals.
Python’s own True and False are spelled differently.