Python - Section 5 Practice Tasks

Task One

Ask the user to enter 4 different numbers.

Then randomly select one of those numbers and print it.

Example solution:


Task Two

You will make a program for logging into a system.


Print a greeting then ask the user for their name.


Wait 2 seconds then print “logging in” and the user’s name.


Then print the current time (current hour and minute).

Example solution:


Task Three

Generate a random number between 3 and 10.

Print this number then print the current minute and current second.

Wait for the random number you generated then print the current minute and current second again.

Example solution: