Learning Intentions
TBAT - complete a range of programming tasks in python using skills learnt in previous lessons
START A NEW PROGRAM AND TYPE IN THIS CODE:
The variable is called x, this is like calling the box ‘x
The raw_input allows the user to enter any symbol or letters.
The input allows the user to enter numbers
Now see if you can complete these:
Write a program that asks for your favourite food and then returns the statement,
I like x as well. Save as FavFood. (Use commas to separate the ‘I like’ and ‘as well’ )
Write a program that asks for 2 of your friend’s names and then states which friend is the best friend.
Save as BestFriends
Make up one of your own
The raw_input allows the user to enter any symbol or letters.
The input allows the user to enter numbers
Now see if you can complete these:
Write a program that asks for your favourite food and then returns the statement,
I like x as well. Save as FavFood. (Use commas to separate the ‘I like’ and ‘as well’ )
Write a program that asks for 2 of your friend’s names and then states which friend is the best friend.
Save as BestFriends
Make up one of your own
Creating a maths quiz
Open a new window and type in the code exactly as it appears below
Save your progam as "maths_question.py"
Now you need to save and complete the worksheet opposite. This will check you have understood some of the concepts you have used.
|
Next Task
Create a test that will check the user’s knowledge of the 12 times multiplication table, with between 4 and 12 questions. You must save it with the name 12_times_table.py and it must include:
1. A header comment, with description, name of creator and date.
2. The program must feature some other use of comments and must work successfully.
1. A header comment, with description, name of creator and date.
2. The program must feature some other use of comments and must work successfully.
You've finished and want more? - well done
Computer Systems Revision
How did you do? Are you confidant with your performance or do you need to revise a little more? If you need to revise some more then click on the "Revise this topic" button. After you have done some revision go back and take the test again. Did you improve your score?
Well done if you did - if not keep on revising. You might find these other topics useful too