Task 1.
Create a function that takes 2 arguments: a string and a number.
If the string's length (length) is greater than the passed number —
print to the console Long, otherwise print Short.
Call the function several times with different values.
Task 2.
Create a function that takes 2 strings: login and password.
Convert both strings to lowercase. If the login equals 'admin', and the password — '12345', print Access granted, otherwise print Access denied.
Task 3.
Create a function that takes 2 strings as arguments.
Compare their length. If the first string is longer than the second — print First is longer, if shorter — Second is longer, and if the lengths are equal — Equal length.
Task 4.
Create a function that takes 2 arguments: name and age.
If the age is greater than or equal to 18 — print to the console the phrase Name, Good, otherwise — Name, No.
Task 5.
Create a function that takes 3 arguments: login, password and age.
Convert the login to lowercase. If the login equals 'admin', the password — '12345', and the age is greater than or equal to 18 — print Good, otherwise — No.
Task 6.
Create a function that takes 2 strings — two words.
Check whether these are the same word, ignoring letter case (for example 'Cat' and 'cat' should be considered the same). Print to the console Same word or Different word.
Task 7.
Create a function that takes 2 arguments: a role (for example 'admin' or 'moderator') and the number of complaints against the user (a number).
If the role is 'moderator', print to the console 'Good'.
If the role is 'admin' and the number of complaints is greater than 5, print to the console 'No'.
If the role is different from 'admin' and 'moderator', and the number of complaints is greater than or equal to 1, print to the console 'No'.
In all other cases print to the console 'Good'.