Problem1 - Write a Python program which receives the user’s age from the input and check whether the user is able to take a Driver licence test and informs the user with a proper message. Note: Suppose, the user is eligible to take a Driver license test if s/he is greater than 18 years also. Problem
2 - Write a Python program which prompts (asks) the user to enter a number between 0 and 10. If the user entered a number that is less than 0 or greater than 10, the number is invalid. If the number is valid, then the program prints as many “Hello” word as the number the user had entered. For instance if the user entered 3 then the program should print Hello 3 times: Hello Hello Hello. 438 Terminal Ave, Vancouver, BC V6A 0C1 https://www.columbiacollege.ca/ Problem
3
- Write a Python program which asks the user to enter two numbers called number1 and
number2 and then prints the number that is bigger. For instance if the user has entered 10
and 15, the program prints the bigger number that 15. Do not use the max function for
this question. Use if-else to find the maximum of the 2 numbers.
Problem4
- Write a Python program which asks the user to enter a number, if the number is divisible
by 6 and 7, the program prints “The number X is divisible by 6 and 7” and if the number
is neither divisible by 6 nor by 7, then it prints “The number X is not divisible by 6 and
7”.
Problem5
- Write a Python program which asks the user to enter a number, if the number is divisible
by 6 or 7, the program prints “The number X is divisible by 6 or 7” and if the number is
neither divisible by 6 nor by 7, then it prints “The number X is not divisible by 6 and 7”.
Problem6
- Write a Python program which prompts(asks) the user to enter three numbers A and B
and X and calculates and prints the result of the following math function:
o A^X+X^B
Problem7
- Write a program which ask the user to enter a GPA (like 76) and checks for following
letter grade based on the table below and prints the proper message:
o For instance if the user entered 70, then the program should print “You are
Average (C+)
Get Free Quote!
330 Experts Online