Challenge 1
Enter a person's age then:
a) If they are over 17 and can drive a car
b) They are over 10 and could be criminally responsible for their actions!
c) They are over 18 they can Drink and can Drive - (hopefully not at the same time)
Challenge 2
Try writing a simple multi-choice quiz program on a subject of your choice - present up to five questions and answers and see if you can work out how to provide a score system. -
Tip = have a variable for score that you add to if the question is correct.
score = score + 1
Challenge 3)
Water State Program challenge
The State of Water
Plan and write a program that allows the user to enter the current temperature in Centigrade
Water freezes at ZERO Degrees, and becomes a gas - steam at 100 Degrees - between them it is liquid.
Output the state of water based on the entered temperature. SOLID LIQUID OR GAS
This is a fairly straight forward program using some logical questions and numbers
Be careful of the data types - in Python you need to cast them to output. - see this example below.
Remember the use of signs
IF A > 10 (is A greater than 10) IF A < 10 (is A less than 10)
If A >= 10 (is A greater than or equal to 10) IF A <= 10 (is A less than or equal to 10)
You can test for two things like this...
IF A > 10 AND A< 50 Then 'This will test if a is more than 10 but less than 50
You can also use OR
IF A = 10 OR A = 15 Then
Challenge 4